Update exports

This commit is contained in:
Andrew Kingston 2025-01-13 11:33:39 +00:00
parent 502c160530
commit 153d905921
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import { it, expect, describe, beforeEach, vi } from "vitest" import { it, expect, describe, beforeEach, vi } from "vitest"
import { createAdminStore } from "./admin" import { AdminStore } from "./admin"
import { writable, get } from "svelte/store" import { writable, get } from "svelte/store"
import { API } from "@/api" import { API } from "@/api"
import { auth } from "@/stores/portal" import { auth } from "@/stores/portal"
@ -46,7 +46,7 @@ describe("admin store", () => {
ctx.writableReturn = { update: vi.fn(), subscribe: vi.fn() } ctx.writableReturn = { update: vi.fn(), subscribe: vi.fn() }
writable.mockReturnValue(ctx.writableReturn) writable.mockReturnValue(ctx.writableReturn)
ctx.returnedStore = createAdminStore() ctx.returnedStore = new AdminStore()
}) })
it("returns the created store", ctx => { it("returns the created store", ctx => {

View File

@ -15,7 +15,7 @@ interface AdminState extends GetEnvironmentResponse {
status?: SystemStatusResponse status?: SystemStatusResponse
} }
class AdminStore extends BudiStore<AdminState> { export class AdminStore extends BudiStore<AdminState> {
constructor() { constructor() {
super({ super({
loaded: false, loaded: false,

View File

@ -13,7 +13,7 @@ interface PortalAuditLogsStore {
logs?: SearchAuditLogsResponse logs?: SearchAuditLogsResponse
} }
export class AuditLogsStore extends BudiStore<PortalAuditLogsStore> { class AuditLogsStore extends BudiStore<PortalAuditLogsStore> {
constructor() { constructor() {
super({}) super({})
} }