aboutsummaryrefslogtreecommitdiff
path: root/query_test.go
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.dev>2023-01-04 23:51:40 +0300
committerNeonXP <i@neonxp.dev>2023-01-04 23:51:40 +0300
commit1872e018d1de12793e794fb45d9bbcea569706fe (patch)
tree98229c5398ef42d696d82ee42a14aea2e4c7c3dd /query_test.go
parent67d30e9444c7bdae62906477cafb5f992c5b70e1 (diff)
Added fill to factoryv0.1.2
Diffstat (limited to 'query_test.go')
-rw-r--r--query_test.go4
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"},