RESTfulMC/JS-SDK/test/mojang.test.ts
Rainnny7 75316d5f6b
All checks were successful
Publish JS SDK / docker (push) Successful in 21s
Fix Mojang tests
2024-04-15 11:25:42 -04:00

14 lines
460 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 status: MojangServerStatusResponse = await getMojangServerStatus(); // Get Mojang service status
expect(status).toBeDefined();
});