2024-04-15 06:43:40 -07:00
|
|
|
import { getMojangServerStatus } from "@/index";
|
2024-04-15 08:25:42 -07:00
|
|
|
import { MojangServerStatusResponse } from "@/types/mojang/server-status-response";
|
2024-04-15 06:43:40 -07:00
|
|
|
import { expect, test } from "bun:test";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Run a test to ensure retrieving
|
|
|
|
* the status of Mojang servers is
|
|
|
|
* successful.
|
|
|
|
*/
|
|
|
|
test("ensureServerStatusCheckSuccess", async () => {
|
2024-04-18 10:18:00 -07:00
|
|
|
const response: MojangServerStatusResponse = await getMojangServerStatus(); // Get Mojang service status
|
|
|
|
expect(response).toBeDefined();
|
2024-04-15 06:43:40 -07:00
|
|
|
});
|