Nuxt/packages/server/test/index.test.js
2019-03-04 20:12:33 +00:00

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)
})
})