From 4cba13dc990b28859fb087a24b90953fa0755bb0 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..e8be0d1 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) => {