hwillson / meteor-stub-collections

Stub out Meteor collections with in-memory local collections.
MIT License
24 stars 17 forks source link

restore() not working with Meteor #5

Closed gh-osama closed 7 years ago

gh-osama commented 7 years ago

Doing nothing but just following the example code leaves a record in the MongoCollection instead of not writing it in the first place or at worst deleting it when restore() is called. Has there been a breaking update to sinon#sandbox causing this?

hwillson commented 7 years ago

@osamakhn Which example code are you following? The tests are passing which verify that the proper stubbed out in memory Collection is used, and the real Collection isn't touched. Can you provide more details?

hwillson commented 7 years ago

I'll close this off for now - please post back with the previously requested details, if this is still happening.