Skip to content

Commit

Permalink
Merge pull request JS-Challenges#6 from aezed/master
Browse files Browse the repository at this point in the history
Modified recursion test to check for calls > 1 rather than exact call…
  • Loading branch information
aezed committed Mar 19, 2016
2 parents 0c2fbc2 + 54babc9 commit 8e5ea6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/part1.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
var originalFactorial = factorial;
factorial = sinon.spy(factorial);
factorial(4);
expect(factorial.callCount).to.equal(5);
expect(factorial.callCount).to.be.above(1);
});

});
Expand Down

0 comments on commit 8e5ea6a

Please sign in to comment.