Skip to content

Fix JQ multi expression when working with arrays #114

@Eun

Description

@Eun

Description

Following code fails in expect_body_json_jq_test.go

		t.Run("array", func(t *testing.T) {
			Test(t,
				Post(s.URL),
				Description("first expression returning an array"),
				Expect().Body().JSON().JQ(".Bills", ".[].ID").Equal([]int{21, 25}),
			)
			Test(t,
				Post(s.URL),
				Description("first expression returning single json objects"),
				Expect().Body().JSON().JQ(".Bills[]", ".ID").Equal([]int{21, 25}),
			)
		})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions