Skip to content

Commit 5990e34

Browse files
authored
Test the removal of the whole document
See also json-patch/json-patch2#17
1 parent 269f54b commit 5990e34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests.json

+5
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@
216216
"expected": {},
217217
"comment": "null value should be valid obj property to be removed" },
218218

219+
{ "doc": 1,
220+
"patch": [{"op": "remove", "path": ""}],
221+
"expected": null,
222+
"comment": "remove whole document" },
223+
219224
{ "doc": {"foo": "bar"},
220225
"patch": [{"op": "replace", "path": "/foo", "value": null}],
221226
"expected": {"foo": null},

0 commit comments

Comments
 (0)