RESTfulMC/JS-SDK/test/mojang.test.ts
Rainnny7 9d594a8c37
Some checks failed
Publish JS SDK / docker (push) Failing after 18s
JS SDK: Add Geo and query data to servers
2024-04-26 17:00:40 -04:00

14 lines
458 B
TypeScript

import {getMojangServerStatus} from "@/index";
import {MojangServerStatusResponse} from "@/types/mojang/server-status-response";
import {expect, test} from "bun:test";
/**
* Run a test to ensure retrieving
* the status of Mojang servers is
* successful.
*/
test("ensureServerStatusCheckSuccess", async () => {
const response: MojangServerStatusResponse = await getMojangServerStatus(); // Get Mojang service status
expect(response).toBeDefined();
});