diff --git a/packages/builder/src/stores/portal/backups.test.js b/packages/builder/src/stores/portal/backups.test.js index 51cd13f91a..93b2c8a2e0 100644 --- a/packages/builder/src/stores/portal/backups.test.js +++ b/packages/builder/src/stores/portal/backups.test.js @@ -1,5 +1,5 @@ import { it, expect, describe, beforeEach, vi } from "vitest" -import { createBackupsStore } from "./backups" +import { BackupStore } from "./backups" import { writable } from "svelte/store" import { API } from "@/api" @@ -33,7 +33,7 @@ describe("backups store", () => { ctx.writableReturn = { update: vi.fn(), subscribe: vi.fn() } writable.mockReturnValue(ctx.writableReturn) - ctx.returnedStore = createBackupsStore() + ctx.returnedStore = new BackupStore() }) it("inits the writable store with the default config", () => { diff --git a/packages/builder/src/stores/portal/backups.ts b/packages/builder/src/stores/portal/backups.ts index 59b0754c71..050d509555 100644 --- a/packages/builder/src/stores/portal/backups.ts +++ b/packages/builder/src/stores/portal/backups.ts @@ -6,7 +6,7 @@ interface BackupState { selectedBackup?: string } -class BackupStore extends BudiStore { +export class BackupStore extends BudiStore { constructor() { super({}) }