From f21b5768a507c8a2a3792701711aedb52bd1ae44 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Tue, 8 Dec 2020 22:55:41 -0500 Subject: [PATCH] Fixed tests for fb.spec.js --- helpers/__tests__/fb.spec.js | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) 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()