Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
truph01 committed Dec 10, 2024
1 parent a01d0cb commit 8d50fec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/PolicyUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {OnyxCollection} from 'react-native-onyx';
import * as PolicyUtils from '@libs/PolicyUtils';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import {Policy} from '@src/types/onyx';
import type {Policy} from '@src/types/onyx';
import createRandomPolicy from '../utils/collections/policies';
import * as TestHelper from '../utils/TestHelper';
import waitForBatchedUpdates from '../utils/waitForBatchedUpdates';
Expand Down Expand Up @@ -109,6 +109,7 @@ describe('PolicyUtils', () => {
it('should return empty array', () => {
// Given mock data for policies
const policies = {
// eslint-disable-next-line @typescript-eslint/naming-convention
1: {
...createRandomPolicy(1, CONST.POLICY.TYPE.CORPORATE),
role: '',
Expand All @@ -123,6 +124,7 @@ describe('PolicyUtils', () => {
// Given mock data for policies
const randomPolicy1 = createRandomPolicy(1, CONST.POLICY.TYPE.CORPORATE);
const policies = {
// eslint-disable-next-line @typescript-eslint/naming-convention
1: randomPolicy1,
};
// When calling getFilteredPolicies with policies
Expand All @@ -133,6 +135,7 @@ describe('PolicyUtils', () => {
it('should return empty array', () => {
// Given mock data for policies
const policies = {
// eslint-disable-next-line @typescript-eslint/naming-convention
1: {
...createRandomPolicy(1, CONST.POLICY.TYPE.CORPORATE),
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
Expand Down

0 comments on commit 8d50fec

Please sign in to comment.