remotely-save/tests/fsWebdis.test.ts

13 lines
384 B
TypeScript
Raw Normal View History

2024-04-27 15:10:36 +00:00
import { strict as assert } from "assert";
import { getOrigPath } from "../src/fsWebdis";
describe("Webdis operations tests", () => {
it("should get orig keys correctly", () => {
const input = "rs:fs:v1:库名字/something dev.md:meta";
const output = getOrigPath(input, "库名字");
const expected = "something dev.md";
assert.equal(output, expected);
});
});