From 41fe4ea3c0fac57a28b4577fad2388b0b51b658d Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Sat, 13 May 2023 02:33:38 +0000
Subject: [PATCH] Fix smoke test

---
 main.go      | 2 +-
 wasm/cmix.go | 4 ++--
 wasm_test.go | 3 +++
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/main.go b/main.go
index 41508da8..e6d4e05b 100644
--- a/main.go
+++ b/main.go
@@ -149,7 +149,7 @@ func setGlobals() {
 	js.Global().Set("NewCmix", js.FuncOf(wasm.NewCmix))
 	js.Global().Set("LoadCmix", js.FuncOf(wasm.LoadCmix))
 	js.Global().Set("LoadSynchronizedCmix",
-		js.FuncOf(wasm.LoadSyncrhonizedCmix))
+		js.FuncOf(wasm.LoadSynchronizedCmix))
 
 	// wasm/delivery.go
 	js.Global().Set("SetDashboardURL", js.FuncOf(wasm.SetDashboardURL))
diff --git a/wasm/cmix.go b/wasm/cmix.go
index 83a76767..c24531a0 100644
--- a/wasm/cmix.go
+++ b/wasm/cmix.go
@@ -144,7 +144,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
 	return utils.CreatePromise(promiseFn)
 }
 
-// LoadSyncrhonizedCmix will [LoadCmix] using a RemoteStore to establish
+// LoadSynchronizedCmix will [LoadCmix] using a RemoteStore to establish
 // a synchronized RemoteKV.
 //
 // Parameters:
@@ -156,7 +156,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
 // Returns a promise:
 //   - Resolves to a Javascript representation of the [Cmix] object.
 //   - 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()
 	password := utils.CopyBytesToGo(args[1])
 	rs := newRemoteStore(args[2])
diff --git a/wasm_test.go b/wasm_test.go
index 59c4485c..b415ece5 100644
--- a/wasm_test.go
+++ b/wasm_test.go
@@ -66,6 +66,9 @@ func TestPublicFunctions(t *testing.T) {
 
 		// Logging has been moved to startup flags
 		"LogLevel": {},
+
+		// NewFilesystemRemoteStorage is internal for bindings.
+		"NewFileSystemRemoteStorage": {},
 	}
 	wasmFuncs := getPublicFunctions("wasm", t)
 	bindingsFuncs := getPublicFunctions(
-- 
GitLab