aboutsummaryrefslogtreecommitdiff
path: root/test/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.js')
-rw-r--r--test/test.js17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/test.js b/test/test.js
index 32a6321..fff3f15 100644
--- a/test/test.js
+++ b/test/test.js
@@ -1,12 +1,14 @@
-const assert = require('assert')
-const database = require('../build/database')
-const hypixelApi = require('../build/hypixelApi')
+globalThis.isTest = true
+
const hypixelCached = require('../build/hypixelCached')
+const hypixelApi = require('../build/hypixelApi')
+const constants = require('../build/constants')
const hypixel = require('../build/hypixel')
-const util = require('../build/util')
const mojang = require('../build/mojang')
-const fs = require('fs')
+const util = require('../build/util')
+const assert = require('assert')
const path = require('path')
+const fs = require('fs')
const cachedJsonData = {}
@@ -56,6 +58,11 @@ mojang.profileFromUser = async (user) => {
return await mojang.profileFromUsername(user)
}
+constants.addJSONConstants = async(filename, addingValues, unit) => {}
+constants.fetchJSONConstant = async(filename) => {
+ return await readJsonData('constants/' + filename.slice(0, filename.length - '.json'.length))
+}
+
/** Clear all the current caches and stuff */
function resetState() {