update tests

This commit is contained in:
Pooya Parsa 2017-07-03 15:47:22 +04:30
parent b209c80d2b
commit 205113dfce

View File

@ -26,14 +26,14 @@ test('/stateless', async t => {
t.true(html.includes('<h1>My component!</h1>')) t.true(html.includes('<h1>My component!</h1>'))
}) })
test('/_nuxt/test.hot-update.json should returns empty html', async t => { // test('/_nuxt/test.hot-update.json should returns empty html', async t => {
try { // try {
await rp(url('/_nuxt/test.hot-update.json')) // await rp(url('/_nuxt/test.hot-update.json'))
} catch (err) { // } catch (err) {
t.is(err.statusCode, 404) // t.is(err.statusCode, 404)
t.is(err.response.body, '') // t.is(err.response.body, '')
} // }
}) // })
// Close server and ask nuxt to stop listening to file changes // Close server and ask nuxt to stop listening to file changes
test.after('Closing server and nuxt.js', async t => { test.after('Closing server and nuxt.js', async t => {