remove build with devtools tests as feature is not merged yet

This commit is contained in:
Pooya Parsa 2018-11-26 20:05:18 +03:30
parent b582e706fc
commit b7285fe8f3
2 changed files with 0 additions and 37 deletions

View File

@ -44,25 +44,6 @@ describe('build', () => {
expect(process.exit).toHaveBeenCalled()
})
test('build with devtools', async () => {
mockGetNuxt({
mode: 'universal'
})
const builder = mockGetBuilder(Promise.resolve())
const cmd = NuxtCommand.from(build)
const args = ['build', '.', '--devtools']
const argv = cmd.getArgv(args)
argv._ = ['.']
const options = await cmd.getNuxtConfig(argv)
await cmd.run()
expect(options.vue.config.devtools).toBe(true)
expect(builder).toHaveBeenCalled()
})
test('build with modern mode', async () => {
mockGetNuxt({
mode: 'universal'

View File

@ -46,24 +46,6 @@ describe('generate', () => {
Command.prototype.getArgv = getArgv
})
test('build with devtools', async () => {
mockGetNuxt()
const generator = mockGetGenerator(Promise.resolve())
const cmd = NuxtCommand.from(generate)
const args = ['generate', '.', '--devtools']
const argv = cmd.getArgv(args)
argv._ = ['.']
const options = await cmd.getNuxtConfig(argv)
await cmd.run()
expect(options.vue.config.devtools).toBe(true)
expect(generator).toHaveBeenCalled()
expect(generator.mock.calls[0][0].build).toBe(true)
})
test('generate with modern mode', async () => {
mockGetNuxt()
mockGetGenerator(Promise.resolve())