mirror of
https://github.com/yjs/yjs.git
synced 2026-01-08 15:33:53 -05:00
lint
This commit is contained in:
@@ -301,7 +301,6 @@ export const testUndoXml = tc => {
|
||||
textchild.format(3, 4, { bold: {} })
|
||||
t.compare(xml0.getContentDeep(), delta.create('UNDEFINED').insert([delta.text().insert('con').insert('tent', { bold: true }).done()]).done())
|
||||
t.assert(xml0.toString() === '<undefined><p>con<bold>tent</bold></p></undefined>')
|
||||
debugger
|
||||
undoManager.undo()
|
||||
t.assert(xml0.toString() === '<undefined><p>content</p></undefined>')
|
||||
undoManager.redo()
|
||||
|
||||
@@ -1439,7 +1439,7 @@ export const testTypesAsEmbed = tc => {
|
||||
text0.applyDelta(delta.create()
|
||||
.insert([new Y.Map([['key', 'val']])])
|
||||
)
|
||||
t.compare(/** @type {any} */ (text0).getContentDeep().toJSON().children, [{ type: 'insert', insert: [{ attrs: { key: { type: 'insert', value: 'val' } }}] }])
|
||||
t.compare(/** @type {any} */ (text0).getContentDeep().toJSON().children, [{ type: 'insert', insert: [{ attrs: { key: { type: 'insert', value: 'val' } } }] }])
|
||||
let firedEvent = false
|
||||
text1.observe(event => {
|
||||
const d = event.deltaDeep
|
||||
|
||||
Reference in New Issue
Block a user