Skip to content

Commit

Permalink
chore(tests): remove redundant comments in request.mock.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Convly committed Dec 9, 2024
1 parent 22cc537 commit 88c756b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/mocks/request.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export const mockRequest = (method: string, url: string): Request => ({
referrer: '',
referrerPolicy: 'no-referrer',
destination: '',
signal: AbortSignal.any([]), // Mocked property
arrayBuffer: jest.fn().mockResolvedValue(new ArrayBuffer(0)), // Mocked function
blob: jest.fn().mockResolvedValue(new Blob()), // Mocked function
formData: jest.fn().mockResolvedValue(new FormData()), // Mocked function
text: jest.fn().mockResolvedValue(''), // Mocked function
json: jest.fn().mockResolvedValue({}), // Mocked function
signal: AbortSignal.any([]),
arrayBuffer: jest.fn().mockResolvedValue(new ArrayBuffer(0)),
blob: jest.fn().mockResolvedValue(new Blob()),
formData: jest.fn().mockResolvedValue(new FormData()),
text: jest.fn().mockResolvedValue(''),
json: jest.fn().mockResolvedValue({}),
});

0 comments on commit 88c756b

Please sign in to comment.