Eun / go-hit

http integration test framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add typed expect functions for `Expect().Body().JSON()`

Eun opened this issue · comments

We have

Expect().Body().Bytes().Equal([]byte("Hello World"))

but it would also be nice to have

Expect().Body().JSON().Bytes().Equal([]byte("Hello World"))

and

Expect().Body().JSON().JQ(".").Bytes().Equal([]byte("Hello World"))