Skip to content

Commit

Permalink
style: use arrow functions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercejudo committed Nov 8, 2015
1 parent 4ecf4ac commit c3552fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const tap = require('../src/');
const plus1 = x => x + 1;
const times5 = x => 5 * x;

describe('tap', function() {
it('apply the second argument to the first value', function() {
describe('tap', () => {
it('apply the second argument to the first value', () => {
[plus1, times5].reduce(tap, 3).should.be.exactly(20);
});
});

0 comments on commit c3552fa

Please sign in to comment.