Skip to content

Commit

Permalink
Try a sneaky work-around
Browse files Browse the repository at this point in the history
Issue is in Sinon and recorded/fixed at sinonjs/sinon#523. This should do until that can be released.
  • Loading branch information
benlangfeld committed Jul 31, 2014
1 parent c9c7224 commit 6b572a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/candy/unit/core/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ define([
fakeConnection.authenticated = true;
fakeConnection.jid = 'n@d/r';

sinon.stub(Candy.Core, 'getConnection').returns(fakeConnection);
sinon.stub(Candy.Core, 'getConnection', function () {
// TODO: Switch this back to using returns() once https://github.com/cjohansen/Sinon.JS/pull/523 is released
return fakeConnection;
});
});

bdd.describe('requesting the roster', function() {
Expand Down

0 comments on commit 6b572a0

Please sign in to comment.