Skip to content

Commit

Permalink
add test for Task
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Oct 4, 2024
1 parent 151cbc8 commit 3c1a533
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/actions/EnforceActionExportRestrictions.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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
Expand All @@ -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', () => {
Expand Down

0 comments on commit 3c1a533

Please sign in to comment.