Skip to content

Commit 2754636

Browse files
committed
fix lint issues related to object types
1 parent 5992f14 commit 2754636

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/CardUtilsTest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,18 +1149,18 @@ describe('CardUtils', () => {
11491149
} as unknown as CardList;
11501150

11511151
const sorted = lodashSortBy(Object.values(cardList), getAssignedCardSortKey);
1152-
expect(sorted.map((r: any) => r.cardID)).toEqual([10, 11]);
1152+
expect(sorted.map((r: Card) => r.cardID)).toEqual([10, 11]);
11531153
});
11541154

1155-
it('places physical Expensify card before its virtual sibling', async () => {
1155+
it('places physical Expensify card before its virtual sibling', () => {
11561156
const cardList = {
11571157
10: {cardID: 10, bank: CONST.EXPENSIFY_CARD.BANK, nameValuePairs: {isVirtual: true}}, // Expensify virtual
11581158
11: {cardID: 11, bank: CONST.EXPENSIFY_CARD.BANK}, // Expensify physical
11591159
99: {cardID: 99, bank: 'chase'}, // non-Expensify
11601160
} as unknown as CardList;
11611161

11621162
const sorted = lodashSortBy(Object.values(cardList), getAssignedCardSortKey);
1163-
expect(sorted.map((r: any) => r.cardID)).toEqual([11, 10, 99]);
1163+
expect(sorted.map((r: Card) => r.cardID)).toEqual([11, 10, 99]);
11641164
});
11651165
});
11661166
});

0 commit comments

Comments
 (0)