Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix emulator on issue
  • Loading branch information
xil222 committed Aug 14, 2021
commit 6175c59ecc02d21adafe13c1cfeccc8c2974fa5f
8 changes: 5 additions & 3 deletions test/integration/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,9 @@ describe('admin.auth', () => {
} catch (error) {
if (authEmulatorHost) {
expect(error).to.have.property('code', 'auth/user-disabled');
} else {
throw error;
}
throw new Error(error);
}

try {
Expand Down Expand Up @@ -2078,12 +2079,13 @@ describe('admin.auth', () => {
try {
// If it is in emulator mode, a user-disabled error will be thrown.
decodedIdToken = await admin.auth().verifySessionCookie(sessionCookie, false);
expect(decodedIdToken.uid).to.equal(uid);
expect(decodedIdToken.uid).to.equal(uid);
} catch (error) {
if (authEmulatorHost) {
expect(error).to.have.property('code', 'auth/user-disabled');
} else {
throw error;
}
throw new Error(error);
}

try {
Expand Down