From 3c1a53369272cb2310a652f31c58bd90d4c953a7 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Fri, 4 Oct 2024 16:31:57 +0700 Subject: [PATCH] add test for Task --- tests/actions/EnforceActionExportRestrictions.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/actions/EnforceActionExportRestrictions.ts b/tests/actions/EnforceActionExportRestrictions.ts index af9afdc65c39..76991ca24a98 100644 --- a/tests/actions/EnforceActionExportRestrictions.ts +++ b/tests/actions/EnforceActionExportRestrictions.ts @@ -1,6 +1,5 @@ import * as IOU from '@libs/actions/IOU'; import * as OptionsListUtils from '@libs/OptionsListUtils'; -import * as ReportActionsUtils from '@libs/ReportActionsUtils'; import * as ReportUtils from '@libs/ReportUtils'; import * as Policy from '@userActions/Policy/Policy'; import * as Task from '@userActions/Task'; @@ -31,13 +30,6 @@ describe('ReportUtils', () => { }); }); -describe('ReportActionsUtils', () => { - it('does not export ReportActionsUtils', () => { - // @ts-expect-error the test is asserting that it's undefined, so the TS error is normal - expect(ReportActionsUtils.getParentReportAction).toBeUndefined(); - }); -}); - describe('Policy', () => { it('does not export getPolicy', () => { // @ts-expect-error the test is asserting that it's undefined, so the TS error is normal @@ -62,6 +54,11 @@ describe('Task', () => { // @ts-expect-error the test is asserting that it's undefined, so the TS error is normal expect(Task.getParentReport).toBeUndefined(); }); + + it('does not export getParentReportAction', () => { + // @ts-expect-error the test is asserting that it's undefined, so the TS error is normal + expect(Task.getParentReportAction).toBeUndefined(); + }); }); describe('OptionsListUtils', () => {