The example given in the README:
expect(getUser()).toBeUndefined();
loadUser(); //function that invokes Query.find
expect(getUser()).toBeDefined();
expect(stub.callCount).toEqual(1); //do assertions on stub object if necessary
Sorry, I'm relatively new to Javascript Async unit testing. It's always useful to have these things spelled out for newbies ;).
The example given in the README:
Sorry, I'm relatively new to Javascript Async unit testing. It's always useful to have these things spelled out for newbies ;).