Skip to content

Commit cb8dd9a

Browse files
author
Mike McCabe
committed
test spurious patch properties
1 parent cc346a5 commit cb8dd9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@
160160
"expected": ["foo", ["bar", "baz"]],
161161
"comment": "value in array replace not flattened" },
162162

163+
{ "comment": "spurious patch properties",
164+
"doc": {"foo": 1},
165+
"patch": [{"test": "/foo", "value": 1, "spurious": 1}],
166+
"expected": {"foo": 1} },
167+
163168
{ "doc": {"foo": null},
164169
"patch": [{"test": "/foo", "value": null}],
165170
"comment": "null value should still be valid obj property" },

0 commit comments

Comments
 (0)