Skip to content

Commit

Permalink
[#17] Define window if not
Browse files Browse the repository at this point in the history
  • Loading branch information
manh-t committed Aug 29, 2023
1 parent 5f9d9a9 commit b14f8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/refreshToken.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('refreshToken', () => {
tokenType: 'tokenType',
}));

global.window = Object.create(window);
global.window ??= Object.create(window);
const url = 'http://dummy.com';
Object.defineProperty(window, 'location', {
value: {
Expand Down

0 comments on commit b14f8e9

Please sign in to comment.