Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with Sinon 3 #78

Merged
merged 3 commits into from
Aug 8, 2017

Conversation

fatso83
Copy link
Contributor

@fatso83 fatso83 commented Aug 7, 2017

This is a simple fix for #77, but also work that will make it work nicely once the deprecated methods from sinonjs/sinon#1515 are removed with version 4 of Sinon.

With release 1.0.0 we removed all uses of sinon.getConfig
so it no longer makes sense to check for this method.

This closes sinonjs#77
The test config now uses the new config object that arrived
with Sinon 3.

See http://sinonjs.org/releases/v3.0.0/fake-timers/
Start using the factory method API available from
Sinon 3.1, while keeping backwards compatibility.
@fatso83 fatso83 mentioned this pull request Aug 7, 2017
@coveralls
Copy link

coveralls commented Aug 7, 2017

Coverage Status

Coverage increased (+0.2%) to 95.238% when pulling fb0a398 on fatso83:77-failing-on-deprecated-methods into 51e9ac6 on sinonjs:master.

@fatso83
Copy link
Contributor Author

fatso83 commented Aug 7, 2017

I reference Sinon 3.1 in the source here, but it has not yet been released (tested against the most recent master, as well as 3.0 and 2.4.1). We can also wait until Sinon 3.1 has been released before merging this, but not much longer as it is presently unusable with Sinon 3.

@fatso83 fatso83 requested a review from fearphage August 8, 2017 06:36
@fatso83
Copy link
Contributor Author

fatso83 commented Aug 8, 2017

Sinon 3.1 has now been released, so I just restarted the (already green) build to verify that it still works (it did).

@mroderick
Copy link
Member

👍

@fatso83 fatso83 merged commit 08110c4 into sinonjs:master Aug 8, 2017
@fatso83 fatso83 deleted the 77-failing-on-deprecated-methods branch August 8, 2017 10:01
@fatso83
Copy link
Contributor Author

fatso83 commented Aug 8, 2017

Released as sinon-test 2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants