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>'))
})
test('/_nuxt/test.hot-update.json should returns empty html', async t => {
try {
await rp(url('/_nuxt/test.hot-update.json'))
} catch (err) {
t.is(err.statusCode, 404)
t.is(err.response.body, '')
}
})
// test('/_nuxt/test.hot-update.json should returns empty html', async t => {
// try {
// await rp(url('/_nuxt/test.hot-update.json'))
// } catch (err) {
// t.is(err.statusCode, 404)
// t.is(err.response.body, '')
// }
// })
// Close server and ask nuxt to stop listening to file changes
test.after('Closing server and nuxt.js', async t => {