(objFactory, objChanger)
| 19 | } |
| 20 | |
| 21 | function getPatchesUsingGenerate(objFactory, objChanger) { |
| 22 | const obj = objFactory(); |
| 23 | const observer = jsonpatch.observe(obj); |
| 24 | objChanger(obj); |
| 25 | return jsonpatch.generate(observer); |
| 26 | } |
| 27 | |
| 28 | function getPatchesUsingCompare(objFactory, objChanger) { |
| 29 | const obj = objFactory(); |
no test coverage detected