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