mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
12 lines
582 B
TypeScript
12 lines
582 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
import { isConcreteTransferTargetPath } from "./utils";
|
|
|
|
test("concrete transfer target paths exclude temporary placeholders", () => {
|
|
assert.equal(isConcreteTransferTargetPath({ targetPath: "/Users/alice/Downloads/report.pdf" }), true);
|
|
assert.equal(isConcreteTransferTargetPath({ targetPath: "C:\\Users\\alice\\Downloads\\report.pdf" }), true);
|
|
assert.equal(isConcreteTransferTargetPath({ targetPath: "(temp)" }), false);
|
|
assert.equal(isConcreteTransferTargetPath({ targetPath: " " }), false);
|
|
});
|