Skip to content

Commit 98162ad

Browse files
author
renkelvin
committed
Update recaptcha_enterprise_verifier.test.ts
1 parent fbb9bd6 commit 98162ad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/auth/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('platform_browser/recaptcha/recaptcha_enterprise_verifier', () => {
102102
);
103103
});
104104

105-
it('reject if error is thrown when retieve recaptcha token', async () => {
105+
it('return fake recaptcha token if error is thrown when retieve recaptcha token', async () => {
106106
mockEndpointWithParams(
107107
Endpoint.GET_RECAPTCHA_CONFIG,
108108
request,
@@ -111,10 +111,7 @@ describe('platform_browser/recaptcha/recaptcha_enterprise_verifier', () => {
111111
sinon
112112
.stub(recaptcha.enterprise, 'execute')
113113
.returns(Promise.reject(Error('retieve-recaptcha-token-error')));
114-
await expect(verifier.verify()).to.be.rejectedWith(
115-
Error,
116-
'retieve-recaptcha-token-error'
117-
);
114+
expect(await verifier.verify()).to.eq('NO_RECAPTCHA');
118115
});
119116
});
120117
});

0 commit comments

Comments
 (0)