Skip to content
Snippets Groups Projects
Commit 41fe4ea3 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix smoke test

parent 98d7f8a3
No related branches found
No related tags found
1 merge request!109Project/haven beta
...@@ -149,7 +149,7 @@ func setGlobals() { ...@@ -149,7 +149,7 @@ func setGlobals() {
js.Global().Set("NewCmix", js.FuncOf(wasm.NewCmix)) js.Global().Set("NewCmix", js.FuncOf(wasm.NewCmix))
js.Global().Set("LoadCmix", js.FuncOf(wasm.LoadCmix)) js.Global().Set("LoadCmix", js.FuncOf(wasm.LoadCmix))
js.Global().Set("LoadSynchronizedCmix", js.Global().Set("LoadSynchronizedCmix",
js.FuncOf(wasm.LoadSyncrhonizedCmix)) js.FuncOf(wasm.LoadSynchronizedCmix))
// wasm/delivery.go // wasm/delivery.go
js.Global().Set("SetDashboardURL", js.FuncOf(wasm.SetDashboardURL)) js.Global().Set("SetDashboardURL", js.FuncOf(wasm.SetDashboardURL))
......
...@@ -144,7 +144,7 @@ func LoadCmix(_ js.Value, args []js.Value) any { ...@@ -144,7 +144,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
return utils.CreatePromise(promiseFn) return utils.CreatePromise(promiseFn)
} }
// LoadSyncrhonizedCmix will [LoadCmix] using a RemoteStore to establish // LoadSynchronizedCmix will [LoadCmix] using a RemoteStore to establish
// a synchronized RemoteKV. // a synchronized RemoteKV.
// //
// Parameters: // Parameters:
...@@ -156,7 +156,7 @@ func LoadCmix(_ js.Value, args []js.Value) any { ...@@ -156,7 +156,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
// Returns a promise: // Returns a promise:
// - Resolves to a Javascript representation of the [Cmix] object. // - Resolves to a Javascript representation of the [Cmix] object.
// - Rejected with an error if loading [Cmix] fails. // - Rejected with an error if loading [Cmix] fails.
func LoadSyncrhonizedCmix(_ js.Value, args []js.Value) any { func LoadSynchronizedCmix(_ js.Value, args []js.Value) any {
storageDir := args[0].String() storageDir := args[0].String()
password := utils.CopyBytesToGo(args[1]) password := utils.CopyBytesToGo(args[1])
rs := newRemoteStore(args[2]) rs := newRemoteStore(args[2])
......
...@@ -66,6 +66,9 @@ func TestPublicFunctions(t *testing.T) { ...@@ -66,6 +66,9 @@ func TestPublicFunctions(t *testing.T) {
// Logging has been moved to startup flags // Logging has been moved to startup flags
"LogLevel": {}, "LogLevel": {},
// NewFilesystemRemoteStorage is internal for bindings.
"NewFileSystemRemoteStorage": {},
} }
wasmFuncs := getPublicFunctions("wasm", t) wasmFuncs := getPublicFunctions("wasm", t)
bindingsFuncs := getPublicFunctions( bindingsFuncs := getPublicFunctions(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment