Skip to content

Commit

Permalink
Add tests for more conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Oct 24, 2021
1 parent 978f125 commit 046fe3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 046fe3a

Please sign in to comment.