From ea9753474a8f3e02079782a2dd6502b297ff541d Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 2 Jul 2022 15:03:15 -0500 Subject: createUuid test --- test/test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/test.js') diff --git a/test/test.js b/test/test.js index 6d30993..baf2d6f 100644 --- a/test/test.js +++ b/test/test.js @@ -5,6 +5,7 @@ const { levelForSkillXp } = await import('../build/cleaners/skyblock/skills.js') const hypixelCached = await import('../build/hypixelCached.js') const hypixelApi = await import('../build/hypixelApi.js') const constants = await import('../build/constants.js') +const database = await import('../build/database.js') const hypixel = await import('../build/hypixel.js') const mojang = await import('../build/mojang.js') const util = await import('../build/util.js') @@ -12,7 +13,6 @@ const assert = await import('assert') const path = await import('path') const fs = await import('fs') - const cachedJsonData = {} let requestsSent = 0 @@ -178,5 +178,9 @@ describe('Individual utility things', () => { 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)) }) + + describe('#createUuid', () => { + it('createUuid works', () => assert.strictEqual(database.createUuid('6536bfed869548fd83a1ecd24cf2a0fd').toString('hex'), '6536bfed869548fd83a1ecd24cf2a0fd')) + }) }) -- cgit