MCPcopy
hub / github.com/yjs/yjs / testInsertionsInLateSync

Function testInsertionsInLateSync

tests/y-array.tests.js:199–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 * @param {t.TestCase} tc
198 */
199export const testInsertionsInLateSync = tc => {
200 const { testConnector, users, array0, array1, array2 } = init(tc, { users: 3 })
201 array0.insert(0, ['x', 'y'])
202 testConnector.flushAllMessages()
203 users[1].disconnect()
204 users[2].disconnect()
205 array0.insert(1, ['user0'])
206 array1.insert(1, ['user1'])
207 array2.insert(1, ['user2'])
208 users[1].connect()
209 users[2].connect()
210 testConnector.flushAllMessages()
211 compare(users)
212}
213
214/**
215 * @param {t.TestCase} tc

Callers

nothing calls this directly

Calls 6

initFunction · 0.90
compareFunction · 0.90
insertMethod · 0.80
flushAllMessagesMethod · 0.80
disconnectMethod · 0.80
connectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…