mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-25 05:53:00 +00:00
Group Hidden File Sync initialisation progress
This commit is contained in:
@@ -7,7 +7,11 @@ const { evalObsidianJson } = vi.hoisted(() => ({
|
||||
|
||||
vi.mock("./cli.ts", () => ({ evalObsidianJson }));
|
||||
|
||||
import { assertE2eCompatibilityMarker, type CompatibilityMarkerState } from "./liveSyncWorkflow.ts";
|
||||
import {
|
||||
assertE2eCompatibilityMarker,
|
||||
createE2eCouchDbPluginData,
|
||||
type CompatibilityMarkerState,
|
||||
} from "./liveSyncWorkflow.ts";
|
||||
|
||||
describe("compatibility marker persistence", () => {
|
||||
it("waits for an accepted review to reach device-local storage", async () => {
|
||||
@@ -32,3 +36,21 @@ describe("compatibility marker persistence", () => {
|
||||
expect(evalObsidianJson).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
});
|
||||
|
||||
describe("configured CouchDB fixture", () => {
|
||||
it("starts in the current remote-profile format instead of exercising legacy migration", () => {
|
||||
const pluginData = createE2eCouchDbPluginData({
|
||||
uri: "https://couch.example",
|
||||
username: "alice",
|
||||
password: "secret",
|
||||
dbName: "notes",
|
||||
});
|
||||
const remoteConfigurations = pluginData.remoteConfigurations as
|
||||
| Record<string, { id: string; uri: string }>
|
||||
| undefined;
|
||||
|
||||
expect(remoteConfigurations).toBeDefined();
|
||||
expect(Object.keys(remoteConfigurations ?? {})).toHaveLength(1);
|
||||
expect(pluginData.activeConfigurationId).toBe(Object.keys(remoteConfigurations ?? {})[0]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user