Skip to content

Commit

Permalink
Add new tests to test.json errors 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkow committed Mar 7, 2024
1 parent cdda10f commit 181bc22
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/resources/jsonpatch/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@
]
},
"message": "value differs from expectations: expected '{\"value\":\"Close\",\"onclick\":\"OpenDoc()\"}' but found '{\"value\":\"Open\",\"onclick\":\"OpenDoc()\"}'"
},
{
"op": { "op": "test", "path": "/menu/0", "value": {"value": "New", "onclick": "OpenDoc()"}},
"node": {
"menu": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
},
"message": "value differs from expectations: expected '{\"value\":\"New\",\"onclick\":\"OpenDoc()\"}' but found '{\"value\":\"New\",\"onclick\":\"CreateNewDoc()\"}'"
}
],
"ops": [
Expand Down

0 comments on commit 181bc22

Please sign in to comment.