Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Global usage of sinon #1

Merged
merged 1 commit into from

2 participants

@klipstein

This little change fixes an issue where sinon is expected to be available as a global. I've tried to add a test for that, but the global sinon is a reference to SinonMocha.sinon and I wasn't able to stub/mock that.

@lightsofapollo lightsofapollo merged commit 0e28069 into lightsofapollo:master
@lightsofapollo

Nice fix thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sinon-mocha.js
View
2  lib/sinon-mocha.js
@@ -21,7 +21,7 @@ SinonMocha = {
afterEach: function(){
WrapMethod.restoreWrappedMethods();
- sinon.wrapMethod.restore();
+ SinonMocha.sinon.wrapMethod.restore();
}
};
Something went wrong with that request. Please try again.