From 84c704a8468c26a7918cbf8ef68448f9a7a40720 Mon Sep 17 00:00:00 2001 From: maxswa Date: Sun, 26 Nov 2023 19:42:46 -0500 Subject: [PATCH] Add test for excluded gamemodes. --- __tests__/hiscores.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__tests__/hiscores.test.ts b/__tests__/hiscores.test.ts index 9bd6665..1913df6 100644 --- a/__tests__/hiscores.test.ts +++ b/__tests__/hiscores.test.ts @@ -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 () => {