diff options
author | mat <github@matdoes.dev> | 2021-06-02 16:40:12 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-06-02 16:40:12 -0500 |
commit | dc2ef9bf01111efaf522e6fdee437d52d9f8c717 (patch) | |
tree | 53a28fdad5bc67d9dc442e8a524f99c4e3f33b42 /test/test.js | |
parent | afa451371b7d685c31dac2dc18471fa0cc3af578 (diff) | |
parent | 69910faa449ee9d4ff63fc1a764434e7bd974d1b (diff) | |
download | skyblock-api-dc2ef9bf01111efaf522e6fdee437d52d9f8c717.tar.gz skyblock-api-dc2ef9bf01111efaf522e6fdee437d52d9f8c717.tar.bz2 skyblock-api-dc2ef9bf01111efaf522e6fdee437d52d9f8c717.zip |
Merge branch 'main' of https://github.com/skyblockstats/skyblock-api into main
Diffstat (limited to 'test/test.js')
-rw-r--r-- | test/test.js | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/test.js b/test/test.js index e0e8b6c..bb96849 100644 --- a/test/test.js +++ b/test/test.js @@ -151,28 +151,28 @@ describe('hypixel', () => { }) describe('Individual utility things', () => { - describe('#levelForSkillXp()', async() => { - it('0 xp is level 0', async() => assert.strictEqual(await levelForSkillXp(0, 60), 0)) - it('49 xp is level 0', async() => assert.strictEqual(await levelForSkillXp(49, 60), 0)) - it('50 xp is level 1', async() => assert.strictEqual(await levelForSkillXp(50, 60), 1)) - it('174 xp is level 1', async() => assert.strictEqual(await levelForSkillXp(174, 60), 1)) - it('175 xp is level 2', async() => assert.strictEqual(await levelForSkillXp(175, 60), 2)) - it('176 xp is level 2', async() => assert.strictEqual(await levelForSkillXp(176, 60), 2)) - it('55172424 xp is level 49', async() => assert.strictEqual(await levelForSkillXp(55172424, 60), 49)) - it('55172425 xp is level 50', async() => assert.strictEqual(await levelForSkillXp(55172425, 60), 50)) - it('111672424 xp is level 59', async() => assert.strictEqual(await levelForSkillXp(111672424, 60), 59)) - it('111672425 xp is level 60', async() => assert.strictEqual(await levelForSkillXp(111672425, 60), 60)) - it('999999999 xp is level 60', async() => assert.strictEqual(await levelForSkillXp(999999999, 60), 60)) - - it('0 xp is level 0 (max 25)', async() => assert.strictEqual(await levelForSkillXp(0, 25), 0)) - it('49 xp is level 0 (max 25)', async() => assert.strictEqual(await levelForSkillXp(49, 25), 0)) - it('50 xp is level 1 (max 25)', async() => assert.strictEqual(await levelForSkillXp(50, 25), 1)) - it('149 xp is level 1 (max 25)', async() => assert.strictEqual(await levelForSkillXp(149, 25), 1)) - it('150 xp is level 2 (max 25)', async() => assert.strictEqual(await levelForSkillXp(150, 25), 2)) - it('151 xp is level 2 (max 25)', async() => assert.strictEqual(await levelForSkillXp(151, 25), 2)) - it('94449 xp is level 24 (max 25)', async() => assert.strictEqual(await levelForSkillXp(94449, 25), 24)) - it('94450 xp is level 25 (max 25)', async() => assert.strictEqual(await levelForSkillXp(94450, 25), 25)) - it('99999 xp is level 25 (max 25)', async() => assert.strictEqual(await levelForSkillXp(99999, 25), 25)) + describe('#levelForSkillXp()', () => { + it('0 xp is level 0', () => assert.strictEqual(levelForSkillXp(0, 60), 0)) + it('49 xp is level 0', () => assert.strictEqual(levelForSkillXp(49, 60), 0)) + it('50 xp is level 1', () => assert.strictEqual(levelForSkillXp(50, 60), 1)) + it('174 xp is level 1', () => assert.strictEqual(levelForSkillXp(174, 60), 1)) + it('175 xp is level 2', () => assert.strictEqual(levelForSkillXp(175, 60), 2)) + it('176 xp is level 2', () => assert.strictEqual(levelForSkillXp(176, 60), 2)) + it('55172424 xp is level 49', () => assert.strictEqual(levelForSkillXp(55172424, 60), 49)) + it('55172425 xp is level 50', () => assert.strictEqual(levelForSkillXp(55172425, 60), 50)) + it('111672424 xp is level 59', () => assert.strictEqual(levelForSkillXp(111672424, 60), 59)) + it('111672425 xp is level 60', () => assert.strictEqual(levelForSkillXp(111672425, 60), 60)) + it('999999999 xp is level 60', () => assert.strictEqual(levelForSkillXp(999999999, 60), 60)) + + it('0 xp is level 0 (max 25)', () => assert.strictEqual(levelForSkillXp(0, 25), 0)) + it('49 xp is level 0 (max 25)', () => assert.strictEqual(levelForSkillXp(49, 25), 0)) + it('50 xp is level 1 (max 25)', () => assert.strictEqual(levelForSkillXp(50, 25), 1)) + it('149 xp is level 1 (max 25)', () => assert.strictEqual(levelForSkillXp(149, 25), 1)) + it('150 xp is level 2 (max 25)', () => assert.strictEqual(levelForSkillXp(150, 25), 2)) + it('151 xp is level 2 (max 25)', () => assert.strictEqual(levelForSkillXp(151, 25), 2)) + it('94449 xp is level 24 (max 25)', () => assert.strictEqual(levelForSkillXp(94449, 25), 24)) + it('94450 xp is level 25 (max 25)', () => assert.strictEqual(levelForSkillXp(94450, 25), 25)) + it('99999 xp is level 25 (max 25)', () => assert.strictEqual(levelForSkillXp(99999, 25), 25)) }) }) |