From 046fe3a8091d80732a7926eaa5243bc84fc3f222 Mon Sep 17 00:00:00 2001 From: Shadow Date: Sat, 23 Oct 2021 20:43:18 -0500 Subject: [PATCH] Add tests for more conditions --- test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.js b/test.js index 7e00915..d4f48b1 100644 --- a/test.js +++ b/test.js @@ -113,6 +113,12 @@ describe("getGuildRewards", async (done) => { it(`should have a Map for the roles property`, async () => { expect(rewards.roles).to.be.a(Map) }) + it(`should have a string for a role in the Map`, async () => { + expect(rewards.roles.values().next().value).to.be.a('string') + }) + it(`should have a number for a level in the Map`, async () => { + expect(rewards.roles.keys().next().value).to.be.a('number') + }) }) describe("getLeaderboardPosition", async (done) => {