(objFactory, objChanger)
| 26 | } |
| 27 | |
| 28 | function getPatchesUsingCompare(objFactory, objChanger) { |
| 29 | const obj = objFactory(); |
| 30 | const mirror = JSON.parse(JSON.stringify(obj)); |
| 31 | objChanger(obj); |
| 32 | return jsonpatch.compare(mirror, JSON.parse(JSON.stringify(obj))); |
| 33 | } |
| 34 | |
| 35 | const customMatchers = { |
| 36 | /** |
no test coverage detected