From b7285fe8f3c3370f1868b923994790edb33e3868 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 26 Nov 2018 20:05:18 +0330 Subject: [PATCH] remove build with devtools tests as feature is not merged yet --- packages/cli/test/unit/build.test.js | 19 ------------------- packages/cli/test/unit/generate.test.js | 18 ------------------ 2 files changed, 37 deletions(-) diff --git a/packages/cli/test/unit/build.test.js b/packages/cli/test/unit/build.test.js index 924fb32016..09d51058c1 100644 --- a/packages/cli/test/unit/build.test.js +++ b/packages/cli/test/unit/build.test.js @@ -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' diff --git a/packages/cli/test/unit/generate.test.js b/packages/cli/test/unit/generate.test.js index 9c17b35c78..5e57bfa84d 100644 --- a/packages/cli/test/unit/generate.test.js +++ b/packages/cli/test/unit/generate.test.js @@ -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())