better typings for ydoc.get

This commit is contained in:
Kevin Jahns
2024-02-09 23:27:24 +01:00
parent 16d9638bc8
commit e1bce03ed8
3 changed files with 10 additions and 16 deletions

View File

@@ -189,7 +189,6 @@ export const testClone = _tc => {
const third = new Y.XmlElement('p')
yxml.push([first, second, third])
t.compareArrays(yxml.toArray(), [first, second, third])
const cloneYxml = yxml.clone()
ydoc.getArray('copyarr').insert(0, [cloneYxml])
t.assert(cloneYxml.length === 3)
@@ -217,7 +216,6 @@ export const testFormattingBug = _tc => {
export const testElement = _tc => {
const ydoc = new Y.Doc()
const yxmlel = ydoc.getXmlElement()
const text1 = new Y.XmlText('text1')
const text2 = new Y.XmlText('text2')
yxmlel.insert(0, [text1, text2])