mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
fix: use toMatch in ANSI color due to appveyor issue
This commit is contained in:
parent
a4c84eced3
commit
592c7159a5
@ -1,11 +0,0 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`basic generate Format errors 1`] = `
|
|
||||||
"[30m[43m GEN ERR [49m[39m[33m /h1[39m
|
|
||||||
[33m[39m
|
|
||||||
[33m[39m[90m\\"page not found\\"[39m
|
|
||||||
[90m[39m
|
|
||||||
[30m[41m GEN ERR [49m[39m[31m /h2[39m
|
|
||||||
[31m[39m
|
|
||||||
[31m[39m[90munhandled error stack[39m"
|
|
||||||
`;
|
|
@ -48,7 +48,11 @@ describe('basic generate', () => {
|
|||||||
{ type: 'handled', route: '/h1', error: 'page not found' },
|
{ type: 'handled', route: '/h1', error: 'page not found' },
|
||||||
{ type: 'unhandled', route: '/h2', error: { stack: 'unhandled error stack' } }
|
{ type: 'unhandled', route: '/h2', error: { stack: 'unhandled error stack' } }
|
||||||
])
|
])
|
||||||
expect(error).toMatchSnapshot()
|
expect(error).toMatch(' GEN ERR ')
|
||||||
|
expect(error).toMatch(' /h1')
|
||||||
|
expect(error).toMatch(' /h2')
|
||||||
|
expect(error).toMatch('"page not found"')
|
||||||
|
expect(error).toMatch('unhandled error stack')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('/stateless', async () => {
|
test('/stateless', async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user