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