videoID validation and userID min length

This commit is contained in:
Michael C
2022-12-27 01:45:50 -05:00
parent b591b7194e
commit 7c2feb80bc
5 changed files with 178 additions and 5 deletions

12
test/cases/environment.ts Normal file
View 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);
});
});