RESTfulMC/JS-SDK/test/mojang.test.ts
Rainnny7 74a3305ddd
Some checks failed
Publish JS SDK / docker (push) Failing after 19s
Add server and Mojang tests
2024-04-15 09:43:40 -04:00

14 lines
421 B
TypeScript

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