Skip to content

Commit

Permalink
style(tests): use bind instead of anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercejudo committed Dec 30, 2015
1 parent 169e8f4 commit 7bc62ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ describe('every2', function() {
});

it('should execute the callback with the provided thisArg as this', function() {
(function() {
every2(fixtures.isSqrt, [9, 3]);
}).should.throw();
every2.bind(undefined, fixtures.isSqrt, [9, 3])
.should.throw();

every2(fixtures.isSqrt, [9, 3], Math).should.be.exactly(true);

Expand Down

0 comments on commit 7bc62ea

Please sign in to comment.