Skip to content

Commit 63d067f

Browse files
fixt test
1 parent 306b573 commit 63d067f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/components/Launcher.nuxt.test.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,28 @@ import { createVuetify } from "vuetify"
77
import * as components from "vuetify/components"
88
import * as directives from "vuetify/directives"
99

10-
// import Launcher from "@/components/Launcher.vue"
10+
import Launcher from "@/components/Launcher.vue"
1111

1212
const vuetify = createVuetify({
1313
components,
1414
directives,
1515
})
1616

1717
const cloud_store = use_cloud_store()
18-
const websocket_store = use_websocket_store()
1918

2019
global.ResizeObserver = require("resize-observer-polyfill")
2120

2221
describe("Launcher.vue", async () => {
2322
test(`Mount`, async () => {
2423
const spy_cloud_store = vi.spyOn(cloud_store, "create_connexion")
25-
// const wrapper = mount(Launcher, {
26-
// global: {
27-
// plugins: [vuetify],
28-
// },
29-
// })
30-
// expect(wrapper.exists()).toBe(true)
31-
// await cloud_store.$patch({ is_captcha_validated: true })
32-
// flushPromises()
33-
// expect(spy_cloud_store).toHaveBeenCalled()
24+
const wrapper = mount(Launcher, {
25+
global: {
26+
plugins: [vuetify],
27+
},
28+
})
29+
expect(wrapper.exists()).toBe(true)
30+
await cloud_store.$patch({ is_captcha_validated: true })
31+
flushPromises()
32+
expect(spy_cloud_store).toHaveBeenCalled()
3433
})
3534
})

0 commit comments

Comments
 (0)