diff options
Diffstat (limited to 'query_test.go')
-rw-r--r-- | query_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/query_test.go b/query_test.go index 44383de..be012e2 100644 --- a/query_test.go +++ b/query_test.go @@ -41,7 +41,7 @@ func TestMustQuery(t *testing.T) { { name: "find in object", args: args{ - parent: json.New(std.Factory).MustUnmarshal(jsonString), + parent: json.New(&std.Factory{}).MustUnmarshal(jsonString), path: []string{"object", "object 2", "three"}, }, want: &std.StringNode{Value: "four"}, @@ -49,7 +49,7 @@ func TestMustQuery(t *testing.T) { { name: "find in array", args: args{ - parent: json.New(std.Factory).MustUnmarshal(jsonString), + parent: json.New(&std.Factory{}).MustUnmarshal(jsonString), path: []string{"array", "[4]", "five"}, }, want: &std.StringNode{Value: "six"}, |