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;