MCPcopy
hub / github.com/yjs/yjs / testInsertThenMergeDeleteOnSync

Function testInsertThenMergeDeleteOnSync

tests/y-array.tests.js:249–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247 * @param {t.TestCase} tc
248 */
249export const testInsertThenMergeDeleteOnSync = tc => {
250 const { testConnector, users, array0, array1 } = init(tc, { users: 2 })
251 array0.insert(0, ['x', 'y', 'z'])
252 testConnector.flushAllMessages()
253 users[0].disconnect()
254 array1.delete(0, 3)
255 users[0].connect()
256 compare(users)
257}
258
259/**
260 * @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…