1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-06 17:40:58 +00:00

Fix: tojson(null) == 'null' (#1068)

* Fix: tojson(null) == 'null'

* Update test

* Update functions_test.go
This commit is contained in:
ChristopherHX 2022-03-22 09:55:13 +01:00 committed by GitHub
parent f93a6e2817
commit d890923f0e
2 changed files with 2 additions and 1 deletions

View file

@ -137,6 +137,7 @@ func TestFunctionToJSON(t *testing.T) {
name string
}{
{"toJSON(env) }}", "{\n \"key\": \"value\"\n}", "toJSON"},
{"toJSON(null)", "null", "toJSON-null"},
}
env := &EvaluationEnvironment{