Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
c3024 committed Oct 17, 2024
1 parent 8771721 commit 7df4c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/ReportActionsUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ describe('ReportActionsUtils', () => {
];

// Expected output should have the `CREATED` action at top
const expectedOutput: ReportAction[] = [input[1], ...input.slice(0, 1), ...input.slice(2)];
const expectedOutput: ReportAction[] = [input.at(1)!, ...input.slice(0, 1), ...input.slice(2)];

Check failure on line 306 in tests/unit/ReportActionsUtilsTest.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Forbidden non-null assertion

Check failure on line 306 in tests/unit/ReportActionsUtilsTest.ts

View workflow job for this annotation

GitHub Actions / ESLint check

Forbidden non-null assertion

const result = ReportActionsUtils.getSortedReportActionsForDisplay(input);
expect(result).toStrictEqual(expectedOutput);
Expand Down Expand Up @@ -397,7 +397,7 @@ describe('ReportActionsUtils', () => {
];

// Expected output should have the `CREATED` action at top
const expectedOutput: ReportAction[] = [input[1], ...input.slice(0, 1), ...input.slice(2)];
const expectedOutput: ReportAction[] = [input.at(1)!, ...input.slice(0, 1), ...input.slice(2)];

Check failure on line 400 in tests/unit/ReportActionsUtilsTest.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Forbidden non-null assertion

Check failure on line 400 in tests/unit/ReportActionsUtilsTest.ts

View workflow job for this annotation

GitHub Actions / ESLint check

Forbidden non-null assertion

const result = ReportActionsUtils.getSortedReportActionsForDisplay(input);
input.pop();
Expand Down

0 comments on commit 7df4c0b

Please sign in to comment.