Skip to content

Commit

Permalink
initializeApp is back
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewTurk247 committed Jun 13, 2024
1 parent f02449d commit a337b4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: spezi-invitation-code/firebase/*
Files: spezi-invitation-code/firebase/**
Copyright: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
License: MIT
Comment: All files are part of the Stanford Spezi open-source project.
1 change: 1 addition & 0 deletions spezi-invitation-code/tests/invitationCodeVerifier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe("InvitationCodeVerifier", () => {
let firestore;

beforeAll(() => {
admin.initializeApp();
verifier = new InvitationCodeVerifier();
firestore = admin.firestore();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jest.mock("firebase-admin", () => {
runTransaction: jest.fn(),
};
return {
initializeApp: jest.fn(),
firestore: jest.fn(() => firestore),
app: jest.fn(() => ({
delete: jest.fn(),
Expand All @@ -27,6 +28,7 @@ describe("InvitationCodeVerifier", () => {
let firestore;

beforeAll(() => {
admin.initializeApp();
firestore = admin.firestore();
firebaseTest.mockConfig({invitationCodePath: "invitationCodes", userPath: "users"});
});
Expand Down

0 comments on commit a337b4e

Please sign in to comment.