Skip to content

Commit

Permalink
Silenced a jshint warning; Unused variable is needed to demonstrate t…
Browse files Browse the repository at this point in the history
…he interface of the function
  • Loading branch information
jan-molak committed Apr 29, 2014
1 parent 497a734 commit ab1ad55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/functional.spec.js
Expand Up @@ -168,7 +168,7 @@ describe('Functional Programming', function() {
});

describe('reduce', function() {
function summarise(previous, current, index, array) {
function summarise(previous, current, index, array) { // jshint unused:false
return previous + current;
}

Expand Down Expand Up @@ -225,9 +225,9 @@ describe('Functional Programming', function() {
return Object.create(null);
}

it('returns 0 if there are no ducks to count', function() {
expect(duckCount()).to.equal(0);
});
it('returns 0 if there are no ducks to count', function() {
expect(duckCount()).to.equal(0);
});

it('counts real ducks', function() {
expect(duckCount(duck())).to.equal(1);
Expand Down Expand Up @@ -345,4 +345,4 @@ describe('Functional Programming', function() {
});
});
});
});
});

0 comments on commit ab1ad55

Please sign in to comment.