Skip to content

Commit ca1a422

Browse files
committed
:chore: Replace toBeTruthy() to toBe(true) (#1956)
1 parent b6f3b5d commit ca1a422

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('ContestTableProviderBase and implementations', () => {
6464
const provider = new ABCLatest20RoundsProvider(ContestType.ABC);
6565
const filtered = provider.filter(mockTaskResults);
6666

67-
expect(filtered?.every((task) => task.contest_id.startsWith('abc'))).toBeTruthy();
67+
expect(filtered?.every((task) => task.contest_id.startsWith('abc'))).toBe(true);
6868
expect(filtered).not.toContainEqual(expect.objectContaining({ contest_id: 'arc100' }));
6969
});
7070

@@ -134,13 +134,13 @@ describe('ContestTableProviderBase and implementations', () => {
134134
const provider = new ABC319OnwardsProvider(ContestType.ABC);
135135
const filtered = provider.filter(mockTaskResults);
136136

137-
expect(filtered.every((task) => task.contest_id.startsWith('abc'))).toBeTruthy();
137+
expect(filtered.every((task) => task.contest_id.startsWith('abc'))).toBe(true);
138138
expect(
139139
filtered.every((task) => {
140140
const round = getContestRound(task.contest_id);
141141
return round >= 319 && round <= 999;
142142
}),
143-
).toBeTruthy();
143+
).toBe(true);
144144
});
145145

146146
test('expects to get correct metadata', () => {
@@ -172,13 +172,13 @@ describe('ContestTableProviderBase and implementations', () => {
172172
const provider = new ABC212ToABC318Provider(ContestType.ABC);
173173
const filtered = provider.filter(mockTaskResults);
174174

175-
expect(filtered.every((task) => task.contest_id.startsWith('abc'))).toBeTruthy();
175+
expect(filtered.every((task) => task.contest_id.startsWith('abc'))).toBe(true);
176176
expect(
177177
filtered.every((task) => {
178178
const round = getContestRound(task.contest_id);
179179
return round >= 212 && round <= 318;
180180
}),
181-
).toBeTruthy();
181+
).toBe(true);
182182
});
183183

184184
test('expects to get correct metadata', () => {

0 commit comments

Comments
 (0)