Skip to content

Commit

Permalink
test: fix timing sensitive node_modules test
Browse files Browse the repository at this point in the history
  • Loading branch information
darscan committed Dec 16, 2016
1 parent b8fb251 commit 2f97f20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/missing-node-modules.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
const test = require('tap-only');
const fs = require('then-fs');
const dir = __dirname + '/fixtures/bugs/SC-1615/';
const before = test;

before('setup: ensure node_modules does not exist', t => {
fs.rmdir(dir + '/node_modules').catch(e => {});
t.end();
});

test('throws when missing node_modules', t => {
var snyk = require('../');
Expand Down

0 comments on commit 2f97f20

Please sign in to comment.