Skip to content

Commit

Permalink
🚚: try to fix test - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashankGupta10 committed Dec 31, 2024
1 parent a05f108 commit 521fadd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ describe("outOfOfficeCreateOrUpdate", () => {
const endTimeUtc = "2024-11-24T23:59:59.999Z";

// Mock Deel API response
(global.fetch as jest.Mock).mockResolvedValueOnce({
json: jest.fn().mockResolvedValue({ status: 201 }),
global.fetch = vi.fn().mockResolvedValueOnce({
json: vi.fn().mockResolvedValue({ status: 201 }),
status: 201,
});

Expand Down

0 comments on commit 521fadd

Please sign in to comment.