Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaugh42 committed Jun 20, 2016
1 parent 6783337 commit 49cf474
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/unit/map-each-practical-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('map-each - practical test', function() {
});

it('should execute the provided callback for each element in the input array', function() {
expect(result).to.eql([1,4,9,16,25,36,49,64,81,100]);
expect(result).to.eql([1,4,9,16,25,36,49,64,81,100]);
});

it('should call the iteratee once for each member of the input array', function() {
Expand Down
10 changes: 5 additions & 5 deletions test/unit/map-each.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ describe('map-each - unit tests', function() {
var iterateeBindStub;
var iterateeBindStubResult = function iterateeBindResult() {};;

before(function () {
before(function() {
MapEach = require('../../lib/map-each.js');
nextTickStub = sinon.stub(process, 'nextTick');
iteratee = sinon.spy();
iterateeBindStub = sinon.stub(iteratee, 'bind').returns(iterateeBindStubResult);
});

beforeEach(function () {
beforeEach(function() {
nextTickStub.reset();
iterateeBindStub.reset();
});

after(function () {
after(function() {
process.nextTick.restore();
});

Expand Down Expand Up @@ -69,7 +69,7 @@ describe('map-each - unit tests', function() {

it('should invoke process.nextTick once', function() {
expect(nextTickStub.callCount).to.equal(1);
})
});
});

describe('map-each - callback', function() {
Expand Down Expand Up @@ -135,4 +135,4 @@ describe('map-each - unit tests', function() {
});
});
});
});
});
5 changes: 2 additions & 3 deletions test/unit/series.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ describe('series', function() {
describe('series - entry point', function() {
var seriesCallbackStub;
var seriesCallbackBindStub;
var seriesCallbackBindResult = {whatever: 'was the bind result'};
var function0BindResult = {whatever: 'was the bind result function0'};
var seriesCallbackBindResult = function seriesCallbackBindResult() {};
var function0BindResult = function function0BindResult() {};
var function0BindStub;
var function1BindStub;

before(function() {
seriesCallbackStub = sinon.stub(Series, '_seriesCallback');
seriesCallbackStub.bind = seriesCallbackBindStub = sinon.stub();
});

beforeEach(function() {
Expand Down

0 comments on commit 49cf474

Please sign in to comment.