Skip to content

Commit

Permalink
resolve due to failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoloaiza authored and mimi-imtbl committed Jul 5, 2024
1 parent b05a2ae commit 530e4d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let windowSpy: SpyInstance;
const closeMock = jest.fn();
const postMessageMock = jest.fn();
const mockNewWindow = {
closed: false, focus: jest.fn(), close: closeMock, location: { href: 'http' }, postMessage: postMessageMock,
closed: true, focus: jest.fn(), close: closeMock, location: { href: 'http' }, postMessage: postMessageMock,
};
const mockedOpen = jest.fn().mockReturnValue(mockNewWindow);
const addEventListenerMock = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion packages/passport/sdk/src/confirmation/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const openPopupCenter = ({
left=${left}
`,
);
if (!newWindow || newWindow.closed) {
if (!newWindow) {
throw new Error('Failed to open confirmation screen');
}

Expand Down

0 comments on commit 530e4d1

Please sign in to comment.