Closed juliandsg0222 closed 1 day ago
This PR resolves #274. The changes made were:
jsondiffpatch
jsondiffpatch/formatters/jsonpatch
json-joy/lib/json-patch
startDocument
createDefaultBlock
setFocus
testHelpers
render
getCurrentBlockIndex
getBlockByIndex
getPosition
getSelection
document
window
Description
This PR resolves #274. The changes made were:
jsondiffpatch
,jsondiffpatch/formatters/jsonpatch
, andjson-joy/lib/json-patch
libraries.startDocument
,createDefaultBlock
, andsetFocus
functions in thetestHelpers
file to mock the editor DOM.render
,getCurrentBlockIndex
, andgetBlockByIndex
methods in the editor mock.getPosition
method for standardizing the use of thegetSelection
function (changeddocument
towindow
).