Update tests

This commit is contained in:
Andrew Kingston 2025-01-02 11:58:57 +00:00
parent c21581f4cc
commit bea5a64e32
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -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", () => {

View File

@ -6,7 +6,7 @@ interface BackupState {
selectedBackup?: string
}
class BackupStore extends BudiStore<BackupState> {
export class BackupStore extends BudiStore<BackupState> {
constructor() {
super({})
}