Skip to content

Commit 0efc893

Browse files
committed
refactor: Simplify method calls by removing unnecessary bracket notation (#2819)
1 parent e5ce308 commit 0efc893

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,13 +1113,11 @@ describe('ContestTableProviderGroup', () => {
11131113
const practicalsProvider = new TessokuBookForPracticalsProvider(ContestType.TESSOKU_BOOK);
11141114
const challengesProvider = new TessokuBookForChallengesProvider(ContestType.TESSOKU_BOOK);
11151115

1116-
expect(examplesProvider['getProviderKey']()).toBe(
1117-
`TESSOKU_BOOK::${TESSOKU_SECTIONS.EXAMPLES}`,
1118-
);
1119-
expect(practicalsProvider['getProviderKey']()).toBe(
1116+
expect(examplesProvider.getProviderKey()).toBe(`TESSOKU_BOOK::${TESSOKU_SECTIONS.EXAMPLES}`);
1117+
expect(practicalsProvider.getProviderKey()).toBe(
11201118
`TESSOKU_BOOK::${TESSOKU_SECTIONS.PRACTICALS}`,
11211119
);
1122-
expect(challengesProvider['getProviderKey']()).toBe(
1120+
expect(challengesProvider.getProviderKey()).toBe(
11231121
`TESSOKU_BOOK::${TESSOKU_SECTIONS.CHALLENGES}`,
11241122
);
11251123
});

0 commit comments

Comments
 (0)