This commit is contained in:
parent
69b7d28111
commit
5a9caf9614
@ -1,8 +1,7 @@
|
|||||||
import { getPlayer, getPlayerSkinPart, getPlayerUuid } from "../dist/index";
|
import { getPlayer, getPlayerSkinPart, getPlayerUuid } from "../dist/index";
|
||||||
|
|
||||||
test("ensureGetPlayerLookupSuccess", async () => {
|
test("ensureGetPlayerLookupSuccess", async () => {
|
||||||
const response = await getPlayer("Notch");
|
const player = await getPlayer("Notch");
|
||||||
const { player } = response;
|
|
||||||
|
|
||||||
expect(player).toBeDefined();
|
expect(player).toBeDefined();
|
||||||
expect(player).toHaveProperty("username");
|
expect(player).toHaveProperty("username");
|
||||||
@ -17,8 +16,7 @@ test("ensureGetPlayerUuidSuccess", async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("ensureGetPlayerSkinPartSuccess", async () => {
|
test("ensureGetPlayerSkinPartSuccess", async () => {
|
||||||
const response = await getPlayer("Notch");
|
const player = await getPlayer("Notch");
|
||||||
const { player } = response;
|
|
||||||
|
|
||||||
const skin = player.skin;
|
const skin = player.skin;
|
||||||
const skinParts = skin.parts;
|
const skinParts = skin.parts;
|
||||||
|
Loading…
Reference in New Issue
Block a user