mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-03 19:07:15 +00:00
fix tests
This commit is contained in:
parent
644d19f7ec
commit
42b603304d
@ -39,7 +39,7 @@ export default class Nuxt extends Tapable {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this._ready = this.ready().catch(this.errorHandler)
|
this._ready = this.ready()
|
||||||
}
|
}
|
||||||
|
|
||||||
async ready () {
|
async ready () {
|
||||||
|
@ -14,9 +14,9 @@ test.serial('Nuxt.js Instance', async t => {
|
|||||||
t.is(typeof nuxt, 'object')
|
t.is(typeof nuxt, 'object')
|
||||||
t.is(nuxt.options.dev, true)
|
t.is(nuxt.options.dev, true)
|
||||||
t.is(typeof nuxt.generate, 'function')
|
t.is(typeof nuxt.generate, 'function')
|
||||||
t.is(typeof nuxt._init.then, 'function')
|
t.is(typeof nuxt._ready.then, 'function')
|
||||||
await nuxt.ready()
|
await nuxt.ready()
|
||||||
t.is(nuxt.readyialized, true)
|
t.is(nuxt.initialized, true)
|
||||||
})
|
})
|
||||||
|
|
||||||
test.serial('Fail to build when no pages/ directory but is in the parent', t => {
|
test.serial('Fail to build when no pages/ directory but is in the parent', t => {
|
||||||
|
Loading…
Reference in New Issue
Block a user