fix tests part 2
All checks were successful
Publish Package / build (push) Successful in 1m13s

This commit is contained in:
Lee 2024-04-17 16:40:02 +01:00
parent 5a9caf9614
commit e4bbc0338f

@ -1,9 +1,7 @@
import { getBlockedStatus, getServer, getServerIcon } from "../dist"; import { ServerPlatform, getBlockedStatus, getServer, getServerIcon } from "../dist";
import { ServerPlatform } from "../src/types/server/platform";
test("ensureGetServerLookupSuccess", async () => { test("ensureGetServerLookupSuccess", async () => {
const cachedServer = await getServer(ServerPlatform.Java, "mc.hypixel.net"); const server = await getServer(ServerPlatform.Java, "mc.hypixel.net");
const { server } = cachedServer;
expect(server).toBeDefined(); expect(server).toBeDefined();
expect(server).toHaveProperty("hostname"); // The server was found expect(server).toHaveProperty("hostname"); // The server was found