Skip to content

Commit

Permalink
fix(auth tests): fixed test failing on CI
Browse files Browse the repository at this point in the history
Removed specific error message for auth failure, due to different error message being returned by
Firebase locally vs on CI
  • Loading branch information
ctrlc03 committed Jan 25, 2023
1 parent de11392 commit 2b48897
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/actions/test/e2e/00-authentication.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ describe("Authentication", () => {
})

it("should not be possible to authenticate with an incorrect email", async () => {
await expect(signInWithEmailAndPassword(userAuth, "wrongEmail", userPassword)).to.be.rejectedWith(
"Firebase: Error (auth/invalid-email)."
)
await expect(signInWithEmailAndPassword(userAuth, "wrongEmail", userPassword)).to.be.rejected
})

it("should not be possible to authenticate if Firebase is unreachable", async () => {
Expand Down

0 comments on commit 2b48897

Please sign in to comment.