From 1872e018d1de12793e794fb45d9bbcea569706fe Mon Sep 17 00:00:00 2001 From: NeonXP Date: Wed, 4 Jan 2023 23:51:40 +0300 Subject: Added fill to factory --- query_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'query_test.go') 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"}, -- cgit v1.2.3