Skip to content

Commit 720caf7

Browse files
committed
fix
1 parent f9be708 commit 720caf7

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tests/unit/components/Launcher.nuxt.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,14 @@ describe("Launcher.vue", async () => {
3838
})
3939
setActivePinia(pinia)
4040
const infra_store = useInfraStore()
41-
const spy_create_backend = vi.spyOn(infra_store, "create_backend")
4241
const wrapper = await mountSuspended(Launcher, {
4342
global: {
44-
plugins: [vuetify],
43+
plugins: [pinia, vuetify],
4544
},
4645
})
4746
expect(wrapper.exists()).toBe(true)
4847
await infra_store.$patch({ is_captcha_validated: true })
4948
await flushPromises()
50-
expect(spy_create_backend).toHaveBeenCalled()
49+
expect(infra_store.create_backend).toHaveBeenCalled()
5150
})
5251
})

tests/unit/stores/Geode.nuxt.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,10 @@ describe("Geode store", () => {
125125

126126
test("response", async () => {
127127
const geode_store = useGeodeStore()
128-
const feedback_store = useFeedbackStore()
129128
geode_store.base_url = ""
130129
getFakeCall.mockImplementation(() => ({}))
131130
await geode_store.do_ping()
132131
expect(geode_store.status).toBe(Status.CONNECTED)
133-
expect(feedback_store.server_error).toBe(false)
134132
})
135133
test("response_error", async () => {
136134
const geode_store = useGeodeStore()
@@ -143,8 +141,6 @@ describe("Geode store", () => {
143141

144142
await geode_store.do_ping()
145143
expect(geode_store.status).toBe(Status.NOT_CONNECTED)
146-
const feedback_store = useFeedbackStore()
147-
expect(feedback_store.server_error).toBe(true)
148144
})
149145
})
150146

0 commit comments

Comments
 (0)