Skip to content

Instantly share code, notes, and snippets.

@1dolinski
Created July 8, 2016 13:31
Show Gist options
  • Select an option

  • Save 1dolinski/2e2fbf80d8e97437f49643a5d75153dd to your computer and use it in GitHub Desktop.

Select an option

Save 1dolinski/2e2fbf80d8e97437f49643a5d75153dd to your computer and use it in GitHub Desktop.
spyOn(firebase.database().ref(), 'set').and.callFake(function(fakeSetObj, fakeOnComplete) {
return fakeOnComplete("error");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment