Update exports
This commit is contained in:
parent
502c160530
commit
153d905921
|
@ -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 => {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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({})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue