Skip to content

Commit

Permalink
fix jsonGet test
Browse files Browse the repository at this point in the history
  • Loading branch information
ofekshenawa committed Jun 19, 2024
1 parent 1a7e474 commit 1e01906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ var _ = Describe("JSON Commands", Label("json"), func() {

res, err = client.JSONGetWithArgs(ctx, "get3", &redis.JSONGetArgs{Indent: "-"}).Result()
Expect(err).NotTo(HaveOccurred())
Expect(res).To(Equal(`[-{--"a":1,--"b":2-}]`))
Expect(res).To(Equal(`{-"a":1,-"b":2}`))

res, err = client.JSONGetWithArgs(ctx, "get3", &redis.JSONGetArgs{Indent: "-", Newline: `~`, Space: `!`}).Result()
Expect(err).NotTo(HaveOccurred())
Expect(res).To(Equal(`[~-{~--"a":!1,~--"b":!2~-}~]`))
Expect(res).To(Equal(`{~-"a":!1,~-"b":!2~}`))
})

It("should JSONMerge", Label("json.merge", "json"), func() {
Expand Down

0 comments on commit 1e01906

Please sign in to comment.