Skip to content

Commit

Permalink
only use the fixtures for real cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemonge committed Mar 17, 2016
1 parent 851483f commit b5f6644
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/wiredep_cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit b5f6644

Please sign in to comment.