mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
fix tests
This commit is contained in:
parent
f650763357
commit
56dbb843ef
@ -14,7 +14,7 @@ const url = route => 'http://localhost:' + port + route
|
|||||||
const nuxtBin = resolve(__dirname, '..', 'bin', 'nuxt')
|
const nuxtBin = resolve(__dirname, '..', 'bin', 'nuxt')
|
||||||
|
|
||||||
test.serial('nuxt build', async t => {
|
test.serial('nuxt build', async t => {
|
||||||
const { stdout, stderr } = await execify(`node ${nuxtBin} build ${rootDir}`)
|
const { stdout } = await execify(`node ${nuxtBin} build ${rootDir}`)
|
||||||
|
|
||||||
t.true(stdout.includes('server-bundle.json'))
|
t.true(stdout.includes('server-bundle.json'))
|
||||||
})
|
})
|
||||||
|
@ -176,7 +176,7 @@ test('Check stats.json generated by build.analyze', t => {
|
|||||||
__dirname,
|
__dirname,
|
||||||
'fixtures/with-config/.nuxt/dist/stats.json'
|
'fixtures/with-config/.nuxt/dist/stats.json'
|
||||||
))
|
))
|
||||||
t.is(stats.assets.length, 35)
|
t.is(stats.assets.length, 34)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('Check /test/test.txt with custom serve-static options', async t => {
|
test('Check /test/test.txt with custom serve-static options', async t => {
|
||||||
|
Loading…
Reference in New Issue
Block a user