diff --git a/test/server.ts b/test/server.ts index 8ec7da7..0460cae 100644 --- a/test/server.ts +++ b/test/server.ts @@ -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