merge experimental-connectors
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { test } from '../node_modules/cutest/cutest.mjs'
|
||||
import { test } from '../node_modules/cutest/cutest.js'
|
||||
import Chance from 'chance'
|
||||
import DeleteStore from '../src/Store/DeleteStore.js'
|
||||
import ID from '../src/Util/ID/ID.js'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { test } from '../node_modules/cutest/cutest.mjs'
|
||||
import { test } from '../node_modules/cutest/cutest.js'
|
||||
import simpleDiff from '../src/Util/simpleDiff.js'
|
||||
import Chance from 'chance'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { test } from '../node_modules/cutest/cutest.mjs'
|
||||
import { test } from '../node_modules/cutest/cutest.js'
|
||||
import BinaryEncoder from '../src/Util/Binary/Encoder.js'
|
||||
import BinaryDecoder from '../src/Util/Binary/Decoder.js'
|
||||
import { generateRandomUint32 } from '../src/Util/generateRandomUint32.js'
|
||||
@@ -9,7 +9,7 @@ function testEncoding (t, write, read, val) {
|
||||
write(encoder, val)
|
||||
let reader = new BinaryDecoder(encoder.createBuffer())
|
||||
let result = read(reader)
|
||||
t.log(`string encode: ${JSON.stringify(val).length} bytes / binary encode: ${encoder.data.length} bytes`)
|
||||
t.log(`string encode: ${JSON.stringify(val).length} bytes / binary encode: ${encoder.length} bytes`)
|
||||
t.compare(val, result, 'Compare results')
|
||||
}
|
||||
|
||||
|
||||
@@ -103,6 +103,7 @@ test('Basic get&set of Map property (handle conflict)', async function map6 (t)
|
||||
map0.set('stuff', 'c0')
|
||||
map1.set('stuff', 'c1')
|
||||
|
||||
await flushAll(t, users)
|
||||
await flushAll(t, users)
|
||||
|
||||
for (let user of users) {
|
||||
@@ -118,6 +119,7 @@ test('Basic get&set&delete of Map property (handle conflict)', async function ma
|
||||
map0.delete('stuff')
|
||||
map1.set('stuff', 'c1')
|
||||
await flushAll(t, users)
|
||||
await flushAll(t, users)
|
||||
for (let user of users) {
|
||||
var u = user.get('map', Y.Map)
|
||||
t.assert(u.get('stuff') === undefined)
|
||||
@@ -132,6 +134,7 @@ test('Basic get&set of Map property (handle three conflicts)', async function ma
|
||||
map1.set('stuff', 'c2')
|
||||
map2.set('stuff', 'c3')
|
||||
await flushAll(t, users)
|
||||
await flushAll(t, users)
|
||||
for (let user of users) {
|
||||
var u = user.get('map', Y.Map)
|
||||
t.compare(u.get('stuff'), 'c0')
|
||||
@@ -152,6 +155,7 @@ test('Basic get&set&delete of Map property (handle three conflicts)', async func
|
||||
map2.set('stuff', 'c2')
|
||||
map3.set('stuff', 'c3')
|
||||
await flushAll(t, users)
|
||||
await flushAll(t, users)
|
||||
for (let user of users) {
|
||||
var u = user.get('map', Y.Map)
|
||||
t.assert(u.get('stuff') === undefined)
|
||||
|
||||
Reference in New Issue
Block a user