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:
1 parent
561495632c
commit
84c704a846
1 file changed
+6
@@ -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 () => {
|
||||
|
||||
Reference in new issue
Block a user