From edc81eb05b2080660638f0088ad1fd21b98c2e1a Mon Sep 17 00:00:00 2001 From: "adam.lenkowski" Date: Tue, 12 Mar 2024 10:41:02 +0100 Subject: [PATCH] Add new tests to test.json errors 6.0 --- src/test/resources/jsonpatch/test.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/resources/jsonpatch/test.json b/src/test/resources/jsonpatch/test.json index 0d492e2..d6fe51f 100644 --- a/src/test/resources/jsonpatch/test.json +++ b/src/test/resources/jsonpatch/test.json @@ -106,6 +106,17 @@ ] }, "message": "value differs from expectations: expected '{\"value\":{},\"onclick\":{}}' but found '{\"value\":\"Close\",\"onclick\":\"CloseDoc()\"}'" + }, + { + "op": { "op": "test", "path": "/menu/3", "value": {"value": {}, "onclick": {}}}, + "node": { + "menu": [ + {"value": "New", "onclick": "CreateNewDoc()"}, + {"value": "Open", "onclick": "OpenDoc()"}, + {"value": "Close", "onclick": "CloseDoc()"} + ] + }, + "message": "value differs from expectations: expected '{\"value\":{},\"onclick\":{}}' but found 'null'" } ], "ops": [