Skip to content

Commit

Permalink
fix(cb2-11288): put es lint fix back in (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-cs authored Mar 19, 2024
1 parent 8bdacbf commit 236868c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/domain/getZip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('getZip', () => {

it('returns a not found error if the file is not found', async () => {
const mockS3 = ({} as unknown) as S3;
const mockPromise = jest.fn().mockReturnValue(Promise.reject(({ code: 'NoSuchKey' } as unknown) as Error));
const mockPromise = jest.fn().mockReturnValue(Promise.reject(({ code: 'NoSuchKey' } as unknown) as Error)); // eslint-disable-line prefer-promise-reject-errors
const mockGetObject = jest.fn().mockReturnValue({ promise: mockPromise });

mockS3.getObject = mockGetObject;
Expand All @@ -89,7 +89,7 @@ describe('getZip', () => {

it('returns an internal server error if the S3 get fails for any other reason', async () => {
const mockS3 = ({} as unknown) as S3;
const mockPromise = jest.fn().mockReturnValue(Promise.reject(({ code: 'Generic Error' } as unknown) as Error));
const mockPromise = jest.fn().mockReturnValue(Promise.reject(({ code: 'Generic Error' } as unknown) as Error)); // eslint-disable-line prefer-promise-reject-errors
const mockGetObject = jest.fn().mockReturnValue({ promise: mockPromise });

mockS3.getObject = mockGetObject;
Expand Down

0 comments on commit 236868c

Please sign in to comment.