diff --git a/tests.json b/tests.json index c6f34c3..44fa7d1 100644 --- a/tests.json +++ b/tests.json @@ -216,6 +216,11 @@ "expected": {}, "comment": "null value should be valid obj property to be removed" }, + { "doc": 1, + "patch": [{"op": "remove", "path": ""}], + "expected": null, + "comment": "remove whole document" }, + { "doc": {"foo": "bar"}, "patch": [{"op": "replace", "path": "/foo", "value": null}], "expected": {"foo": null},