This commit is contained in:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user