Update tests

This commit is contained in:
Andrew Kingston 2024-12-12 15:00:45 +00:00
parent 3dfdb740ac
commit b57aa1675b
No known key found for this signature in database
1 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import { it, expect, describe, beforeEach, vi } from "vitest"
import { DEFAULT_CONFIG, createAdminStore } from "./admin"
import { createAdminStore } from "./admin"
import { writable, get } from "svelte/store"
import { API } from "api"
@ -45,11 +45,6 @@ describe("admin store", () => {
ctx.returnedStore = createAdminStore()
})
it("inits the writable store with the default config", () => {
expect(writable).toHaveBeenCalledTimes(1)
expect(writable).toHaveBeenCalledWith(DEFAULT_CONFIG)
})
it("returns the created store", ctx => {
expect(ctx.returnedStore).toEqual({
subscribe: expect.toBe(ctx.writableReturn.subscribe),