Skip to content

Astronomy save not work with Stub Collections #15

Open
@bialesdaniel

Description

@bialesdaniel

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions