Skip to content

Commit

Permalink
[Auth] Fix a type error in one of our tests (#4624)
Browse files Browse the repository at this point in the history
* Fix broken compilation

* Formatting
  • Loading branch information
sam-gc authored Mar 15, 2021
1 parent d2eda13 commit 4e7c78b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ describe('platform_browser/recaptcha/recaptcha_loader', () => {
triggerNetworkTimeout = stubSingleTimeout(networkTimeoutId);

sinon.stub(jsHelpers, '_loadJS').callsFake(() => {
return new Promise((resolve, reject) => {
return (new Promise<void>((resolve, reject) => {
jsLoader = { resolve, reject };
});
}) as unknown) as Promise<Event>;
});

loader = new ReCaptchaLoaderImpl();
Expand Down

0 comments on commit 4e7c78b

Please sign in to comment.