mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
test(structure): mock connection state revision in preset spec
This commit is contained in:
+2
@@ -237,6 +237,8 @@ vi.mock("@/stores/connectionStore", () => ({
|
||||
useConnectionStore: () => ({
|
||||
ensureConnected: mocks.ensureConnected,
|
||||
getConfig: (connectionId: string) => (connectionId === mocks.connection.id ? mocks.connection : undefined),
|
||||
connectionStateRevision: () => 0,
|
||||
isCurrentConnectionStateRevision: () => true,
|
||||
}),
|
||||
}));
|
||||
vi.mock("@/stores/productionSafetyStore", () => ({ useProductionSafetyStore: () => ({ requestConfirmation: vi.fn() }) }));
|
||||
|
||||
Reference in New Issue
Block a user