From 42b603304d1b1f810ba44d8bb33692604b5db467 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 16 Jun 2017 03:08:43 +0430 Subject: [PATCH] fix tests --- lib/nuxt.js | 2 +- test/index.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nuxt.js b/lib/nuxt.js index 99ed0a87ca..6ffc424243 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -39,7 +39,7 @@ export default class Nuxt extends Tapable { } }) - this._ready = this.ready().catch(this.errorHandler) + this._ready = this.ready() } async ready () { diff --git a/test/index.test.js b/test/index.test.js index 066578f632..ae20a2ef74 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -14,9 +14,9 @@ test.serial('Nuxt.js Instance', async t => { t.is(typeof nuxt, 'object') t.is(nuxt.options.dev, true) t.is(typeof nuxt.generate, 'function') - t.is(typeof nuxt._init.then, 'function') + t.is(typeof nuxt._ready.then, 'function') 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 => {