MCPcopy
hub / github.com/yjs/yjs / testDeletionsInLateSync

Function testDeletionsInLateSync

tests/y-array.tests.js:235–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 * @param {t.TestCase} tc
234 */
235export const testDeletionsInLateSync = tc => {
236 const { testConnector, users, array0, array1 } = init(tc, { users: 2 })
237 array0.insert(0, ['x', 'y'])
238 testConnector.flushAllMessages()
239 users[1].disconnect()
240 array1.delete(1, 1)
241 array0.delete(0, 2)
242 users[1].connect()
243 compare(users)
244}
245
246/**
247 * @param {t.TestCase} tc

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…