Commit 84f0091b authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

fix test

parent 692da957
......@@ -12,33 +12,36 @@ describe('next build --debug', () => {
output = stripAnsi(next.cliOutput)
})
const str = `
Redirects
┌ source: /:path+/
├ destination: /:path+
└ permanent: true
it('should log Redirects above Route(app)', async () => {
let data = output
.slice(output.indexOf('Redirects\n'), output.indexOf('○ (Static)'))
.trim()
┌ source: /redirects
├ destination: /
└ permanent: true
expect(data).toMatchInlineSnapshot(`
"Redirects
┌ source: /:path+/
├ destination: /:path+
└ permanent: true
┌ source: /redirects
├ destination: /
└ permanent: true
Headers
┌ source: /
└ headers:
└ x-custom-headers: headers
Headers
┌ source: /
└ headers:
└ x-custom-headers: headers
Rewrites
┌ source: /rewrites
└ destination: /
Rewrites
┌ source: /rewrites
└ destination: /
Route (app)`
it('should log Redirects above Route(app)', async () => {
expect(output).toContain(str)
Route (app)
┌ ○ /
└ ○ /_not-found"
`)
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment