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