Report incomplete Object Storage wipes

This commit is contained in:
vorotamoroz committed 2026-09-01 01:23:34 +00:00
1 parent 9592ce8529
commit bd0581cdc9
6 files changed
+188 -5

No files matched your search

@@ -237,6 +237,26 @@ describe("ObsidianLiveSyncSettingTab connection testing", () => {
});
});
describe("ObsidianLiveSyncSettingTab Fresh Start Wipe", () => {
it("returns the remote wipe result and disposes its temporary Journal client", async () => {
const resetBucket = vi.fn(async () => false);
const dispose = vi.fn();
const tab = new ObsidianLiveSyncSettingTab(
{} as never,
{
app: {},
core: {},
} as never
);
vi.spyOn(tab, "getMinioJournalSyncClient").mockReturnValue({ resetBucket, dispose } as never);
await expect(tab.resetRemoteBucket()).resolves.toBe(false);
expect(resetBucket).toHaveBeenCalledOnce();
expect(dispose).toHaveBeenCalledOnce();
});
});
describe("ObsidianLiveSyncSettingTab pending-setting initialisation", () => {
function createSettingsTab() {
const saveSettingData = vi.fn(async () => undefined);