Skip to content

Commit

Permalink
Add test for excluded gamemodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxswa committed Nov 27, 2023
1 parent 5614956 commit 84c704a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/hiscores.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@ describe('Get stats options', () => {
)
).toBeFalsy();
});
it('omits excluded gamemodes', async () => {
const response = await getStats(rsn, {
otherGamemodes: ['ironman', 'ultimate']
});
expect(response.hardcore).toBeUndefined();
});
});

test('CSV and JSON parsing outputs identical object', async () => {
Expand Down

0 comments on commit 84c704a

Please sign in to comment.