mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
13 lines
384 B
TypeScript
13 lines
384 B
TypeScript
|
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);
|
||
|
});
|
||
|
});
|