Skip to content

Commit

Permalink
Add tests for opts.ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
eush77 committed Jul 24, 2015
1 parent a48dcc2 commit 892dc33
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,22 @@ test('load-main', function (t) {
}
});
});


test('ignore', function (t) {
var repl = Repl.start({
input: through(),
output: through()
});

var loaded;
t.plan(1);

replHere(repl, fixtures, { ignore: 'module-as-file' })
.on('load', function (name, path) {
loaded = loaded || name == 'moduleAsFile';
})
.on('end', function () {
t.false(loaded, 'ignores module');
});
});

0 comments on commit 892dc33

Please sign in to comment.