File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -7,29 +7,28 @@ import { createVuetify } from "vuetify"
77import * as components from "vuetify/components"
88import * as directives from "vuetify/directives"
99
10- // import Launcher from "@/components/Launcher.vue"
10+ import Launcher from "@/components/Launcher.vue"
1111
1212const vuetify = createVuetify ( {
1313 components,
1414 directives,
1515} )
1616
1717const cloud_store = use_cloud_store ( )
18- const websocket_store = use_websocket_store ( )
1918
2019global . ResizeObserver = require ( "resize-observer-polyfill" )
2120
2221describe ( "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} )
You can’t perform that action at this time.
0 commit comments