fix tests
Some checks failed
Publish Package / build (push) Failing after 15s

This commit is contained in:
Lee 2024-04-17 16:38:49 +01:00
parent 69b7d28111
commit 5a9caf9614

@ -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;