mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
videoID validation and userID min length
This commit is contained in:
12
test/cases/environment.ts
Normal file
12
test/cases/environment.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user