Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Fixed tests for fb.spec.js

Andrew Bastinf21b5768a507
diff --git a/helpers/__tests__/fb.spec.js b/helpers/__tests__/fb.spec.js
index ead98b043..d9b2a824b 100644
--- a/helpers/__tests__/fb.spec.js
+++ b/helpers/__tests__/fb.spec.js
@@ -205,7 +205,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, {
- github: () => {},
+ github: () => {
+ return {
+ addScope: () => {}
+ }
+ },
})
signOutUser()
@@ -218,7 +222,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, {
- github: () => {},
+ github: () => {
+ return {
+ addScope: () => {}
+ }
+ },
})
signOutUser()
@@ -231,7 +239,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, {
- github: () => {},
+ github: () => {
+ return {
+ addScope: () => {}
+ }
+ },
})
signOutUser()
@@ -244,7 +256,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, {
- github: () => {},
+ github: () => {
+ return {
+ addScope: () => {}
+ }
+ },
})
signOutUser()