Skip to content

Commit

Permalink
Merge pull request #43 from odlp/test-deep-nonexistent-path
Browse files Browse the repository at this point in the history
Add test for deep nonexistent path
  • Loading branch information
tenderlove authored May 4, 2020
2 parents f42d357 + 260f59d commit ea3af85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@
"patch": [{"op": "remove", "path": "/baz"}],
"error": "removing a nonexistent field should fail" },

{ "comment": "Removing deep nonexistent path",
"doc": {"foo" : "bar"},
"patch": [{"op": "remove", "path": "/missing1/missing2"}],
"error": "removing a nonexistent field should fail" },

{ "comment": "Removing nonexistent index",
"doc": ["foo", "bar"],
"patch": [{"op": "remove", "path": "/2"}],
Expand Down

0 comments on commit ea3af85

Please sign in to comment.