mirror of
https://github.com/nianzhibai/91.git
synced 2026-06-15 08:45:41 +08:00
16 lines
530 B
TypeScript
16 lines
530 B
TypeScript
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import test from "node:test";
|
|
|
|
const drivesPageSource = readFileSync(
|
|
new URL("../src/admin/DrivesPage.tsx", import.meta.url),
|
|
"utf8"
|
|
);
|
|
|
|
test("spider91 drive form does not expose advanced crawler credentials", () => {
|
|
assert.doesNotMatch(drivesPageSource, /target_new/);
|
|
assert.doesNotMatch(drivesPageSource, /crawl_hour/);
|
|
assert.doesNotMatch(drivesPageSource, /python_path/);
|
|
assert.doesNotMatch(drivesPageSource, /script_path/);
|
|
});
|