diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-06-02 16:23:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 16:23:38 -0500 |
commit | 69910faa449ee9d4ff63fc1a764434e7bd974d1b (patch) | |
tree | 75efc15481ecf153044f1de214b0b4e212bc0cc4 /test/test.js | |
parent | 709d428b4cb94e8eca53b6f32e0f8b1be5a323b9 (diff) | |
download | skyblock-api-69910faa449ee9d4ff63fc1a764434e7bd974d1b.tar.gz skyblock-api-69910faa449ee9d4ff63fc1a764434e7bd974d1b.tar.bz2 skyblock-api-69910faa449ee9d4ff63fc1a764434e7bd974d1b.zip |
Extra skill info (#52)
* include more data about skills
* i decided that having manual stuff in skyblock-constants is a bad idea
* Update skills.js
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)) }) }) |