mirror of
https://github.com/maxswa/osrs-json-hiscores.git
synced 2025-10-15 10:19:04 +00:00
Add test for excluded gamemodes.
This commit is contained in:
@@ -580,6 +580,12 @@ describe('Get stats options', () => {
|
|||||||
)
|
)
|
||||||
).toBeFalsy();
|
).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 () => {
|
test('CSV and JSON parsing outputs identical object', async () => {
|
||||||
|
Reference in New Issue
Block a user