diff options
Diffstat (limited to 'test/test.js')
-rw-r--r-- | test/test.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test.js b/test/test.js index f3ea692..5cbde19 100644 --- a/test/test.js +++ b/test/test.js @@ -31,13 +31,14 @@ hypixelApi.mockSendApiRequest(async (path, options) => { requestsSent++ switch (path) { case 'player': { - return { data: await readJsonData(`player/${options.uuid}`) } + return await readJsonData(`player/${options.uuid}`) } case 'skyblock/profiles': { - return { data: await readJsonData(`skyblock/profiles/${options.uuid}`) } + return await readJsonData(`skyblock/profiles/${options.uuid}`) } + case 'resources/skyblock/items': + return await readJsonData('resources/skyblock/items') } - console.log(path, args) }) mojang.mockProfileFromUuid(async (uuid) => { |