From b5f6644979a0d807a03b129e8c8fc18fa8dde6dd Mon Sep 17 00:00:00 2001 From: Eddie Monge Date: Wed, 16 Mar 2016 19:12:24 -0700 Subject: [PATCH] only use the fixtures for real cli tests --- test/wiredep_cli.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/test/wiredep_cli.js b/test/wiredep_cli.js index 3f0867c..08fedef 100644 --- a/test/wiredep_cli.js +++ b/test/wiredep_cli.js @@ -9,21 +9,22 @@ var assert = require('chai').assert; var sinon = require('sinon'); describe('wiredep-cli', function () { - before(function () { - fs.copySync('test/fixture', '.tmp'); - process.chdir('.tmp'); - }); - - after(function () { - process.chdir('..'); - fs.removeSync('.tmp'); - }); function reset () { delete require.cache[require.resolve('../wiredep-cli')]; } describe('replace functionality', function () { + before(function () { + fs.copySync('test/fixture', '.tmp'); + process.chdir('.tmp'); + }); + + after(function () { + process.chdir('..'); + fs.removeSync('.tmp'); + }); + function runCli (arg) { var src = getFilePaths('index', 'html');