Nuxt/test/deprecate.test.js

29 lines
662 B
JavaScript
Raw Normal View History

2018-03-18 23:41:14 +00:00
import { Nuxt } from '..'
import { loadFixture, getPort } from './utils'
2018-03-18 23:41:14 +00:00
let port
let nuxt = null
2018-03-18 19:31:32 +00:00
// let buildSpies = null
2018-03-19 02:19:19 +00:00
describe('deprecate', () => {
2018-03-18 19:31:32 +00:00
beforeAll(async () => {
2018-03-18 23:41:14 +00:00
const config = loadFixture('deprecate')
nuxt = new Nuxt(config)
2018-03-18 23:41:14 +00:00
port = await getPort()
await nuxt.listen(port, 'localhost')
2018-03-18 23:41:14 +00:00
})
2018-03-18 23:41:14 +00:00
test.skip('Deprecated: module.addVendor()', async () => {
// expect(
// buildSpies.warn.calledWithMatch('module: addVendor is no longer necessary')
// ).toBe(true)
})
2018-03-18 19:31:32 +00:00
// Close server and ask nuxt to stop listening to file changes
test('Closing server and nuxt.js', async () => {
await nuxt.close()
})
})