From 5a9caf96144f2b8f51a5206c7e29b01884ad2792 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 17 Apr 2024 16:38:49 +0100 Subject: [PATCH] fix tests --- test/player.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/player.ts b/test/player.ts index 9414c5a..2536ea1 100644 --- a/test/player.ts +++ b/test/player.ts @@ -1,8 +1,7 @@ import { getPlayer, getPlayerSkinPart, getPlayerUuid } from "../dist/index"; test("ensureGetPlayerLookupSuccess", async () => { - const response = await getPlayer("Notch"); - const { player } = response; + const player = await getPlayer("Notch"); expect(player).toBeDefined(); expect(player).toHaveProperty("username"); @@ -17,8 +16,7 @@ test("ensureGetPlayerUuidSuccess", async () => { }); test("ensureGetPlayerSkinPartSuccess", async () => { - const response = await getPlayer("Notch"); - const { player } = response; + const player = await getPlayer("Notch"); const skin = player.skin; const skinParts = skin.parts;