Fix unit tests and run tests on linux build
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -10,6 +10,7 @@ jobs:
- checkout
- run: go get -v -t -d ./...
+ - run: go test ./...
- run: go build
- store_artifacts:

MODIFY
internal/scripting/javascript_test.go
internal/scripting/javascript_test.go
@@ -24,8 +24,8 @@ func TestJavaScriptEngine(t *testing.T) {
return
}
- if gotNewText := e.OnMessage(tt.input); gotNewText != tt.want {
- t.Errorf("JavaScriptEngine.OnMessage() = %v, want %v", gotNewText, tt.want)
+ if gotNewText := e.OnMessageSend(tt.input); gotNewText != tt.want {
+ t.Errorf("JavaScriptEngine.OnMessageSend() = %v, want %v", gotNewText, tt.want)
}
})
}

Fix unit tests and run tests on linux build