mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-29 23:02:42 +00:00
update tests
This commit is contained in:
parent
b209c80d2b
commit
205113dfce
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user