Add test for excluded gamemodes.

This commit is contained in:
maxswa
2023-11-26 19:42:46 -05:00
parent 561495632c
commit 84c704a846

View File

@@ -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 () => {