mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
15 lines
376 B
JavaScript
15 lines
376 B
JavaScript
import { loadFixture, Nuxt } from '../utils'
|
|
|
|
describe.posix('basic sockets', () => {
|
|
test('/', async () => {
|
|
const options = await loadFixture('sockets')
|
|
const nuxt = new Nuxt(options)
|
|
await nuxt.server.listen()
|
|
|
|
const { html } = await nuxt.server.renderRoute('/')
|
|
expect(html).toContain('<h1>Served over sockets!</h1>')
|
|
|
|
await nuxt.close()
|
|
})
|
|
})
|