Fixed tests for fb.spec.js
This commit is contained in:
parent
ba08883623
commit
f21b5768a5
1 changed files with 20 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue