Skip to content

Commit

Permalink
fix: browsers_change event always has collection as arg
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Jul 4, 2013
1 parent da47bf2 commit 42bf787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var Browser = function(id, collection, emitter) {
this.lastResult.error = true;
}

emitter.emit('browsers_change', this);
emitter.emit('browsers_change', collection);
emitter.emit('browser_complete', this, result);
};

Expand Down
2 changes: 1 addition & 1 deletion test/unit/browser.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe 'browser', ->

browser.isReady = false
browser.onComplete()
expect(spy).to.have.been.called
expect(spy).to.have.been.calledWith collection


it 'should ignore if browser not executing', ->
Expand Down

0 comments on commit 42bf787

Please sign in to comment.