Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Aug 15, 2023
1 parent f1306c8 commit 223330f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apis/duck/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ func TestCreatePatch(t *testing.T) {
},
want: JSONPatch{{
Operation: "add",
Path: "/status/patchable/array/2",
Value: "baz",
}, {
Operation: "replace",
Path: "/status/patchable/array/1",
Value: "bar",
}},
Expand All @@ -228,7 +232,11 @@ func TestCreatePatch(t *testing.T) {
},
want: JSONPatch{{
Operation: "remove",
Path: "/status/patchable/array/1",
}, {
Operation: "replace",
Path: "/status/patchable/array/0",
Value: "bar",
}},
}, {
name: "patch with remove collection",
Expand Down Expand Up @@ -266,6 +274,10 @@ func TestCreatePatch(t *testing.T) {
},
want: JSONPatch{{
Operation: "add",
Path: "/status/patchable/array/1",
Value: "bar",
}, {
Operation: "replace",
Path: "/status/patchable/array/0",
Value: "foo",
}},
Expand Down

0 comments on commit 223330f

Please sign in to comment.