hwillson / meteor-stub-collections

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

Astronomy save not work with Stub Collections #15

Open bialesdaniel opened 7 years ago

bialesdaniel commented 7 years ago

I am trying to test a Meteor method with StubCollections. I am using the Astronomy package and basically what I'm doing is

currentUser.userData.firstName = firstName;
currentUser.userData.lastName = lastName;
currentUser.save((err,id)=>{
  if(err){
    throw err;
  }
  console.log(id);
});

When doing StubCollections.stub(Meteor.users); This save doesn't update any record.

hwillson commented 6 years ago

Any chance you could put together a small reproduction that demonstrates this issue? Thanks!