Skip to content

Commit

Permalink
linter changes
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <sumukhhs@amazon.com>
  • Loading branch information
sumukhswamy committed Jan 24, 2025
1 parent bf612d0 commit 10f563b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions server/routes/utils/__tests__/savedSearchReportHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ describe('test create saved search report', () => {
test('create report with expected file name', async () => {
const hits: Array<{ _source: any }> = [];

Check warning on line 61 in server/routes/utils/__tests__/savedSearchReportHelper.test.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
const client = mockOpenSearchClient(hits);
const { timeCreated: _timeCreated, fileName } = await createSavedSearchReport(
const {
timeCreated: _timeCreated,
fileName,
} = await createSavedSearchReport(
input,
client,
mockDateFormat,
Expand Down Expand Up @@ -1493,8 +1496,10 @@ function mockOpenSearchClient(
};
case 'clearScroll':
return null;
default:
throw new Error(`Fail due to unexpected function call on client: ${endpoint}`);
default:
throw new Error(
`Fail due to unexpected function call on client: ${endpoint}`
);
}
});
return client;
Expand Down

0 comments on commit 10f563b

Please sign in to comment.