http/test/axios.test.js

19 lines
434 B
JavaScript
Raw Normal View History

2017-08-13 11:22:10 +00:00
const { Nuxt, Builder } = require('nuxt')
process.env.NODE_ENV = 'production'
describe('axios module', () => {
let nuxt
beforeAll(async () => {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000
nuxt = new Nuxt({ srcDir: __dirname + '/fixture', dev: false })
let builder = new Builder(nuxt)
await builder.build()
})
test('test', () => {
expect(nuxt.options.dev).toBe(false)
})
})