This commit is contained in:
fyears
2024-04-27 23:10:36 +08:00
parent 5340e38eac
commit 61a3fab219
17 changed files with 528 additions and 22 deletions
+3
View File
@@ -16,6 +16,9 @@ const DEFAULT_SETTINGS: RemotelySavePluginSettings = {
onedrive: {
username: "test 🍎 emoji",
} as any,
webdis: {
address: "addr",
} as any,
password: "password",
serviceType: "s3",
currLogLevel: "info",
+12
View File
@@ -0,0 +1,12 @@
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);
});
});