Nuxt/test/unit/sockets.test.js

17 lines
387 B
JavaScript
Raw Normal View History

import { loadFixture, Nuxt } from '../utils'
let nuxt = null
2019-01-29 11:29:55 +00:00
describe.posix('basic sockets', () => {
test('/', async () => {
const options = await loadFixture('sockets')
nuxt = new Nuxt(options)
await nuxt.server.listen()
const { html } = await nuxt.server.renderRoute('/')
2018-11-08 09:41:24 +00:00
expect(html).toContain('<h1>Served over sockets!</h1>')
await nuxt.close()
})
})