Skip to content
Draft
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
fix lint
  • Loading branch information
Xiaoshouzi-gh committed May 3, 2022
commit bfc4292eb77954440aacbc1749ca0195d8fd7593
14 changes: 7 additions & 7 deletions test/integration/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1819,15 +1819,15 @@ describe('admin.auth', () => {
};
// enable account defender first.
return getAuth().tenantManager().updateTenant(createdTenantId, updatedOptions)
.then((actualTenant) => {
expect(actualTenant.recaptchaConfig?.useAccountDefender).to.be.true;
// attempt to disable reCAPTCHA.
return getAuth().tenantManager().updateTenant(createdTenantId, updatedOptions2)
.should.eventually.be.rejected.and.have.property('code', 'auth/invalid-config');
});
.then((actualTenant) => {
expect(actualTenant.recaptchaConfig?.useAccountDefender).to.be.true;
// attempt to disable reCAPTCHA.
return getAuth().tenantManager().updateTenant(createdTenantId, updatedOptions2)
.should.eventually.be.rejected.and.have.property('code', 'auth/invalid-config');
});
});

it('updateTenant() disable reCAPTCHA should be rejected when Account Defender is enabled',
it('updateTenant() disable reCAPTCHA should be rejected when Account Defender is enabled',
function () {
// Skipping for now as Emulator resolves this operation, which is not expected.
// TODO: investigate with Rest API and Access team for this behavior.
Expand Down