Skip to content

Commit

Permalink
last testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstarkov committed May 2, 2016
1 parent c2058b5 commit fc6d3c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function esDepsDeep(file, excludeFn = R.F) {
// deep :: String -> Array[Object]
const deep = R.pipeP(toPromise,
contract('file', String),
R.tap(() => contract('excludeFn', Function, excludeFn)),
resolveCwd,
R.when(R.isNil, () => reject(new Error(`Can't find and open \`${file}\``))),
esDepUnit(null, null),
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ test('filtering', async t => {
test('unresolved', t => t.throws(esDepsDeep('./fixtures/unresolved'), Error));
test('empty input', t => t.throws(esDepsDeep(), TypeError));
test('invalid input', t => t.throws(esDepsDeep(2), TypeError));
test.todo('invalid excludeFn');
test('invalid excludeFn', t => t.throws(esDepsDeep('./fixtures/basic', 2), TypeError));

0 comments on commit fc6d3c3

Please sign in to comment.