/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/e2e/app-dir/prerender-encoding/prerender-encoding.test.ts
12 строк
356 B
Sam Ko
fix: uri encode dynamic routes in dev (#71588)
30 окт 2024, 00:51
Не верифицирован
30 окт 2024, 00:51
35a3eca
Код
Авторство
О чём код?
import { nextTestSetup } from 'e2e-utils' describe('prerender-encoding', () => { const { next } = nextTestSetup({ files: __dirname, }) it('should respond with the prerendered page correctly', async () => { const $ = await next.render$('/sticks%20%26%20stones') expect($('div').text()).toBe('params.id is sticks%20%26%20stones') }) })