Small Refactoring

This commit is contained in:
riabovvo committed 2020-09-01 14:22:53 +03:00
1 parent 9ccc1c1728
commit 24d35e0505
9 files changed
+66 -71

No files matched your search

+3 -1
View File
@@ -1,4 +1,4 @@
package script
package script_test
import (
"errors"
@@ -31,6 +31,7 @@ func TestGoja_AddFunction(t *testing.T) {
a.Equal("string", varchar)
a.Equal(0, integer)
a.Equal("test", object)
return "test", nil
}
vm := goja.New()
@@ -43,6 +44,7 @@ func TestGoja_AddFunction(t *testing.T) {
a.Equal("string", varchar)
a.Equal(0, integer)
a.Equal("test", object)
//nolint
return "test", errors.New("TEST")
}
vm = goja.New()