RESTfulMC/JS-SDK/test/mojang.test.ts
Rainnny7 cb0280f817
All checks were successful
Publish JS SDK / docker (push) Successful in 21s
Update the JS SDK to support the new layout of the /mojang/status endpoint
2024-04-18 13:18:00 -04:00

14 lines
464 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();
});