Skip to content

Commit

Permalink
fix: resolved ParseURL failing test post upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Mar 12, 2024
1 parent e368154 commit 09e17bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { waitFor } from '@testing-library/react';
import {
modifyObjectKeys,
camelCaseObject,
Expand Down Expand Up @@ -164,9 +165,9 @@ describe('ParseURL', () => {
});

it('should return empty object in case of document being undefined', () => {
delete global.document;
global.document = undefined;

expect(parseURL(testURL)).toEqual({});
waitFor(() => { expect(parseURL(testURL)).toEqual({}); });
});
});

Expand Down

0 comments on commit 09e17bd

Please sign in to comment.