mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
12 lines
383 B
TypeScript
12 lines
383 B
TypeScript
import assert from "assert";
|
|
import { config } from "../../src/config";
|
|
|
|
describe("environment", () => {
|
|
it("minUserIDLength should be < 10", () => {
|
|
assert(config.minUserIDLength < 10);
|
|
});
|
|
it("nodeJS major version should be >= 16", () => {
|
|
const [major] = process.versions.node.split(".").map(i => parseInt(i));
|
|
assert(major >= 16);
|
|
});
|
|
});
|