http/test/axios.test.js

20 lines
447 B
JavaScript
Raw Normal View History

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