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