mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
17 lines
387 B
JavaScript
17 lines
387 B
JavaScript
import { loadFixture, Nuxt } from '../utils'
|
|
|
|
let nuxt = null
|
|
|
|
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('/')
|
|
expect(html).toContain('<h1>Served over sockets!</h1>')
|
|
|
|
await nuxt.close()
|
|
})
|
|
})
|