@geode/opengeodeweb-front 9.7.2 → 9.7.3
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 +1 -1
- package/stores/infra.js +1 -1
- package/stores/viewer.js +1 -1
- package/test/stores/Infra.nuxt.test.js +3 -3
package/package.json
CHANGED
package/stores/infra.js
CHANGED
|
@@ -48,7 +48,7 @@ export const use_infra_store = defineStore("infra", {
|
|
|
48
48
|
actions: {
|
|
49
49
|
async create_backend() {
|
|
50
50
|
if (this.status === Status.CREATED) return
|
|
51
|
-
navigator.locks.request("infra.create_backend", async (lock) => {
|
|
51
|
+
return navigator.locks.request("infra.create_backend", async (lock) => {
|
|
52
52
|
this.status = Status.CREATING
|
|
53
53
|
if (this.status === Status.CREATED) return
|
|
54
54
|
console.log("LOCK GRANTED !", lock)
|
package/stores/viewer.js
CHANGED
|
@@ -59,7 +59,7 @@ export const use_viewer_store = defineStore("viewer", {
|
|
|
59
59
|
async ws_connect() {
|
|
60
60
|
if (process.env.NODE_ENV == "test") return
|
|
61
61
|
if (this.status === Status.CONNECTED) return
|
|
62
|
-
navigator.locks.request("viewer.ws_connect", async (lock) => {
|
|
62
|
+
return navigator.locks.request("viewer.ws_connect", async (lock) => {
|
|
63
63
|
if (this.status === Status.CONNECTED) return
|
|
64
64
|
console.log("VIEWER LOCK GRANTED !", lock)
|
|
65
65
|
this.status = Status.CONNECTING
|
|
@@ -123,7 +123,7 @@ describe("Infra Store", () => {
|
|
|
123
123
|
test("test without end-point", async () => {
|
|
124
124
|
await infra_store.create_backend()
|
|
125
125
|
console.log("geode_store.status", geode_store.status)
|
|
126
|
-
expect(infra_store.status).toBe(Status.
|
|
126
|
+
expect(infra_store.status).toBe(Status.NOT_CREATED)
|
|
127
127
|
expect(geode_store.status).toBe(Status.NOT_CONNECTED)
|
|
128
128
|
expect(viewer_store.status).toBe(Status.NOT_CONNECTED)
|
|
129
129
|
})
|
|
@@ -133,10 +133,10 @@ describe("Infra Store", () => {
|
|
|
133
133
|
handler: () => ({ ID: "123456" }),
|
|
134
134
|
})
|
|
135
135
|
await infra_store.create_backend()
|
|
136
|
-
expect(infra_store.status).toBe(Status.
|
|
136
|
+
expect(infra_store.status).toBe(Status.CREATED)
|
|
137
137
|
expect(geode_store.status).toBe(Status.NOT_CONNECTED)
|
|
138
138
|
expect(viewer_store.status).toBe(Status.NOT_CONNECTED)
|
|
139
|
-
expect(feedback_store.server_error).toBe(
|
|
139
|
+
expect(feedback_store.server_error).toBe(true)
|
|
140
140
|
})
|
|
141
141
|
})
|
|
142
142
|
})
|