1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

fix #115 - support toJson and toJSON (#116)

This commit is contained in:
Casey Lee 2020-02-28 15:20:31 -08:00 committed by GitHub
parent 85fde9ee94
commit 33561d42d3
2 changed files with 5 additions and 2 deletions

View file

@ -64,6 +64,7 @@ func TestEvaluate(t *testing.T) {
{"join(['hello','mona','the'],'octocat')", "hello mona the octocat", ""},
{"join('hello','mona')", "hello mona", ""},
{"toJSON({'foo':'bar'})", "{\n \"foo\": \"bar\"\n}", ""},
{"toJson({'foo':'bar'})", "{\n \"foo\": \"bar\"\n}", ""},
{"hashFiles('**/package-lock.json')", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", ""},
{"success()", "true", ""},
{"failure()", "false", ""},