[tests] update error assertion

Vue now gives better error "render function or template not defined in component" instead of "not_defined is not defined"
This commit is contained in:
Pooya Parsa 2017-05-02 15:55:04 +04:30
parent aeea3cb9eb
commit c3769f64e7

View File

@ -37,7 +37,7 @@ test('/ with renderAndGetWindow()', async t => {
await nuxt.renderAndGetWindow(url('/')) await nuxt.renderAndGetWindow(url('/'))
} catch (e) { } catch (e) {
t.true(e.message.includes('Could not load the nuxt app')) t.true(e.message.includes('Could not load the nuxt app'))
t.true(e.body.includes('not_defined is not defined')) t.true(e.body.includes('render function or template not defined in component'))
} }
}) })