Skip to content

Commit fd1235e

Browse files
committed
:chore: Add type (#2402)
1 parent c78095d commit fd1235e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/lib/utils/contest_table_provider.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ describe('ContestTableProviderBase and implementations', () => {
335335
const provider = new Typical90Provider(ContestType.TYPICAL90);
336336
const filtered = provider.filter([] as TaskResults);
337337

338-
expect(filtered).toEqual([]);
338+
expect(filtered).toEqual([] as TaskResults);
339339
});
340340

341341
test('expects to handle task results with different contest types', () => {
@@ -345,8 +345,7 @@ describe('ContestTableProviderBase and implementations', () => {
345345
{ contest_id: 'dp', task_id: 'dp_a', task_table_index: 'A' },
346346
{ contest_id: 'tdpc', task_id: 'tdpc_a', task_table_index: 'A' },
347347
];
348-
349-
const filtered = provider.filter(mockMixedTasks as any);
348+
const filtered = provider.filter(mockMixedTasks as TaskResults);
350349

351350
expect(filtered).toEqual([]);
352351
});

0 commit comments

Comments
 (0)