Nuxt/test/unit/sockets.test.js

15 lines
376 B
JavaScript
Raw Normal View History

import { loadFixture, Nuxt } from '../utils'
2019-01-29 11:29:55 +00:00
describe.posix('basic sockets', () => {
test('/', async () => {
const options = await loadFixture('sockets')
2019-02-12 13:05:37 +00:00
const 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()
})
})