SponsorBlockServer/test/cases/environment.ts
2022-12-27 01:45:50 -05:00

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);
});
});