mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-21 14:26:23 -07:00
25 lines
No EOL
690 B
TypeScript
25 lines
No EOL
690 B
TypeScript
/* global webroot, styles, defaultStyle, serverTZ */
|
|
|
|
import {test, expect} from "@jest/globals";
|
|
import "./inittests";
|
|
|
|
// tests to make sure that the initial variables and stuff have been set correctly and are
|
|
// usable by the tests
|
|
|
|
test("Checks for valid mock server timezone (serverTZ)", () => {
|
|
expect(isNaN(serverTZ)).toBe(false);
|
|
});
|
|
|
|
test("Checks mock themes to make sure the default one (defaultStyle) exists and is pipes.css", () => {
|
|
let styleName = "";
|
|
for(const style of styles) {
|
|
if(style.Filename === defaultStyle) {
|
|
styleName = style.Name;
|
|
}
|
|
}
|
|
expect(styleName).toBe("Pipes");
|
|
});
|
|
|
|
test("tests mock webroot, should be /", () => {
|
|
expect(webroot).toBe("/");
|
|
}); |