mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-06 21:05:21 +00:00
13 lines
516 B
TypeScript
13 lines
516 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { getRemoteConfigurationDescription } from "./remoteConfigDisplay";
|
|
|
|
describe("getRemoteConfigurationDescription", () => {
|
|
it("should mask credentials and query parameters in WebDAV connection strings", () => {
|
|
expect(
|
|
getRemoteConfigurationDescription(
|
|
"sls+webdav://user:pass@example.com/dav?prefix=vault%2F&headers=Authorization%3A%20Bearer%20token"
|
|
)
|
|
).toBe("https://example.com/dav");
|
|
});
|
|
});
|