| 61 | * @param {t.TestCase} _tc |
| 62 | */ |
| 63 | export const testArrayFrom = _tc => { |
| 64 | const doc1 = new Y.Doc() |
| 65 | const db1 = doc1.get('root') |
| 66 | const nestedArray1 = Y.Type.from(delta.create().insert([0, 1, 2])) |
| 67 | db1.setAttr('array', nestedArray1) |
| 68 | t.compare(nestedArray1.toArray(), [0, 1, 2]) |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Debugging yjs#297 - a critical bug connected to the search-marker approach |