Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Firebase Stub: minor tweak in reference .on function

gianantoniopini306db64ff1e5
diff --git a/__mocks__/gatsby-plugin-firebase/database/reference.js b/__mocks__/gatsby-plugin-firebase/database/reference.js
index 6d4223145..ea04ee405 100644
--- a/__mocks__/gatsby-plugin-firebase/database/reference.js
+++ b/__mocks__/gatsby-plugin-firebase/database/reference.js
@@ -175,6 +175,8 @@ class Reference {
if (eventType === DatabaseConstants.valueEventType) {
this.triggerEventCallback(eventType);
}
+
+ return callback;
}
async once(eventType) {