Fixed tests for fb.spec.js

This commit is contained in:
Andrew Bastin
2020-12-08 22:55:41 -05:00
parent ba08883623
commit f21b5768a5

View File

@@ -205,7 +205,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup") const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, { const fb = new FirebaseInstance(mocksdk, {
github: () => {}, github: () => {
return {
addScope: () => {}
}
},
}) })
signOutUser() signOutUser()
@@ -218,7 +222,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup") const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, { const fb = new FirebaseInstance(mocksdk, {
github: () => {}, github: () => {
return {
addScope: () => {}
}
},
}) })
signOutUser() signOutUser()
@@ -231,7 +239,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup") const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, { const fb = new FirebaseInstance(mocksdk, {
github: () => {}, github: () => {
return {
addScope: () => {}
}
},
}) })
signOutUser() signOutUser()
@@ -244,7 +256,11 @@ describe("FirebaseInstance", () => {
const fbFunc = jest.spyOn(mockAuth, "signInWithPopup") const fbFunc = jest.spyOn(mockAuth, "signInWithPopup")
const fb = new FirebaseInstance(mocksdk, { const fb = new FirebaseInstance(mocksdk, {
github: () => {}, github: () => {
return {
addScope: () => {}
}
},
}) })
signOutUser() signOutUser()