mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 02:07:14 +00:00
15 lines
331 B
JavaScript
15 lines
331 B
JavaScript
|
import { Server, Listener } from '../src'
|
||
|
|
||
|
jest.mock('../src/server', () => ({
|
||
|
server: true
|
||
|
})).mock('../src/listener', () => ({
|
||
|
listener: true
|
||
|
}))
|
||
|
|
||
|
describe('server: entry', () => {
|
||
|
test('should export Server and Listener', () => {
|
||
|
expect(Server.server).toEqual(true)
|
||
|
expect(Listener.listener).toEqual(true)
|
||
|
})
|
||
|
})
|