Update tests
This commit is contained in:
parent
c21581f4cc
commit
bea5a64e32
|
@ -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", () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ interface BackupState {
|
|||
selectedBackup?: string
|
||||
}
|
||||
|
||||
class BackupStore extends BudiStore<BackupState> {
|
||||
export class BackupStore extends BudiStore<BackupState> {
|
||||
constructor() {
|
||||
super({})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue