aboutsummaryrefslogtreecommitdiff
path: root/test/test.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-07-02 15:03:15 -0500
committermat <github@matdoes.dev>2022-07-02 15:03:15 -0500
commitea9753474a8f3e02079782a2dd6502b297ff541d (patch)
tree865d65bc6142ac1a3b6a00cd88a1336f0e8a9057 /test/test.js
parentb36aa3475b1918bcbf2b7cfcad661cfb739878c9 (diff)
downloadskyblock-api-ea9753474a8f3e02079782a2dd6502b297ff541d.tar.gz
skyblock-api-ea9753474a8f3e02079782a2dd6502b297ff541d.tar.bz2
skyblock-api-ea9753474a8f3e02079782a2dd6502b297ff541d.zip
createUuid test
Diffstat (limited to 'test/test.js')
-rw-r--r--test/test.js6
1 files changed, 5 insertions, 1 deletions
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'))
+ })
})