Skip to content

Commit

Permalink
[web-browser] Remove broken test (#28524)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjhughes committed Apr 29, 2024
1 parent 7c33abb commit f13a24a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/expo-web-browser/src/__tests__/WebBrowser-test.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,3 @@ it(`dismissBrowser returns nothing`, () => {
expect(closeResult).toBeUndefined();
expect(ExpoWebBrowser.dismissBrowser).toHaveBeenCalledTimes(1);
});

it(`openAuthSessionAsync allows subsequent attempts if the browser never opens`, async () => {
ExpoWebBrowser.openBrowserAsync.mockRejectedValueOnce(new Error('No matching activity!'));
ExpoWebBrowser.openBrowserAsync.mockRejectedValueOnce(new Error('Current activity not found!'));
ExpoWebBrowser.openBrowserAsync.mockRejectedValueOnce(new Error('No package manager!'));
const pageUrl = 'http://expo.io';
const redirectUrl = 'exp://expo.io';
await expect(WebBrowser.openAuthSessionAsync(pageUrl, redirectUrl)).rejects.toThrowError(
'No matching activity!'
);
await expect(WebBrowser.openAuthSessionAsync(pageUrl, redirectUrl)).rejects.toThrowError(
'Current activity not found!'
);
await expect(WebBrowser.openAuthSessionAsync(pageUrl, redirectUrl)).rejects.toThrowError(
'No package manager!'
);
});

0 comments on commit f13a24a

Please sign in to comment.