From 7df4c0bf843c9314f7a88d4d8842c184266490f5 Mon Sep 17 00:00:00 2001 From: c3024 Date: Thu, 17 Oct 2024 20:54:40 +0530 Subject: [PATCH] fix lint --- tests/unit/ReportActionsUtilsTest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/ReportActionsUtilsTest.ts b/tests/unit/ReportActionsUtilsTest.ts index 919a564a61c..5d27b622510 100644 --- a/tests/unit/ReportActionsUtilsTest.ts +++ b/tests/unit/ReportActionsUtilsTest.ts @@ -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)]; const result = ReportActionsUtils.getSortedReportActionsForDisplay(input); expect(result).toStrictEqual(expectedOutput); @@ -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)]; const result = ReportActionsUtils.getSortedReportActionsForDisplay(input); input.pop();