@geode/opengeodeweb-front 10.0.2-rc.6 → 10.0.2-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "unplugin-auto-import": "20.0.0",
31
31
  "vite": "6.3.5",
32
32
  "vite-plugin-vuetify": "2.1.1",
33
- "vitest": "3.2.4",
33
+ "vitest": "4.0.15",
34
34
  "vitest-environment-nuxt": "1.0.1"
35
35
  },
36
36
  "overrides": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
40
40
  "type": "module",
41
- "version": "10.0.2-rc.6",
41
+ "version": "10.0.2-rc.7",
42
42
  "main": "./nuxt.config.js",
43
43
  "dependencies": {
44
44
  "@geode/opengeodeweb-back": "next",
@@ -41,16 +41,20 @@ describe("run_function_when_microservices_connected", () => {
41
41
  await viewerStore.$patch({ status: Status.NOT_CONNECTED })
42
42
  })
43
43
 
44
- test("microservices connected", async () => {
44
+ test("microservices not connected", async () => {
45
45
  const geodeStore = useGeodeStore()
46
46
  const viewerStore = useViewerStore()
47
+ const infraStore = useInfraStore()
47
48
  const spy = vi.spyOn(dumb_obj, "dumb_method")
48
49
  run_function_when_microservices_connected(dumb_obj.dumb_method)
49
- await geodeStore.$patch({ status: Status.CONNECTED })
50
- await viewerStore.$patch({ status: Status.CONNECTED })
51
- expect(spy).toHaveBeenCalled()
52
- })
50
+ await geodeStore.$patch({ status: Status.NOT_CONNECTED })
51
+ await viewerStore.$patch({ status: Status.NOT_CONNECTED })
52
+ console.log("geodeStore", geodeStore.status)
53
+ console.log("viewerStore", viewerStore.status)
53
54
 
55
+ console.log("microservices_connected", infraStore.microservices_connected)
56
+ expect(spy).not.toHaveBeenCalled()
57
+ })
54
58
  test("microservices not connected", async () => {
55
59
  const geodeStore = useGeodeStore()
56
60
  const viewerStore = useViewerStore()
@@ -65,4 +69,14 @@ describe("run_function_when_microservices_connected", () => {
65
69
  console.log("microservices_connected", infraStore.microservices_connected)
66
70
  expect(spy).not.toHaveBeenCalled()
67
71
  })
72
+
73
+ test("microservices connected", async () => {
74
+ const geodeStore = useGeodeStore()
75
+ const viewerStore = useViewerStore()
76
+ const spy = vi.spyOn(dumb_obj, "dumb_method")
77
+ run_function_when_microservices_connected(dumb_obj.dumb_method)
78
+ await geodeStore.$patch({ status: Status.CONNECTED })
79
+ await viewerStore.$patch({ status: Status.CONNECTED })
80
+ expect(spy).toHaveBeenCalled()
81
+ })
68
82
  })