Skip to content

Commit

Permalink
Remove auth's invalid token test
Browse files Browse the repository at this point in the history
 It's covered elsewhere now that we do exp testing.
  • Loading branch information
DellaBitta committed Dec 16, 2024
1 parent 33e4889 commit 02708d3
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions packages/auth/test/integration/flows/firebaseserverapp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,37 +166,6 @@ describe('Integration test: Auth FirebaseServerApp tests', () => {
await deleteApp(serverApp);
});

it('invalid token does not sign in user', async () => {
if (isBrowser()) {
return;
}
const authIdToken = '{ invalid token }';
const firebaseServerAppSettings = { authIdToken };

const serverApp = initializeServerApp(
getAppConfig(),
firebaseServerAppSettings
);
const serverAppAuth = getTestInstanceForServerApp(serverApp);
expect(serverAppAuth.currentUser).to.be.null;

let numberServerLogins = 0;
onAuthStateChanged(serverAppAuth, serverAuthUser => {
if (serverAuthUser) {
numberServerLogins++;
}
});

await new Promise(resolve => {
setTimeout(resolve, signInWaitDuration);
});

expect(numberServerLogins).to.equal(0);
expect(serverAppAuth.currentUser).to.be.null;

await deleteApp(serverApp);
});

it('signs in with email credentials user', async () => {
if (isBrowser()) {
return;
Expand Down

0 comments on commit 02708d3

Please sign in to comment.