Skip to content

Instantly share code, notes, and snippets.

@1dolinski
Created June 8, 2016 01:18
Show Gist options
  • Select an option

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

Select an option

Save 1dolinski/a9ae3d37065d8f52c074e72a78ec8688 to your computer and use it in GitHub Desktop.
firebase.database().ref(childRef).set(SetObject, onComplete);
// first attempt?!
spyOn(firebase, 'database().ref().set()', function(params) {
return {
then: function(callback) {
return callback("SET_SUCCESS");
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment