implemented experimental websockets-connector

This commit is contained in:
Kevin Jahns
2018-05-23 14:01:00 +02:00
parent 684d38d6c8
commit cccc0e1015
86 changed files with 1646 additions and 795 deletions

View File

@@ -1,7 +1,7 @@
import { test } from '../node_modules/cutest/cutest.mjs'
import Chance from 'chance'
import DeleteStore from '../src/Store/DeleteStore.js'
import ID from '../src/Util/ID/ID.js'
import DeleteStore from '../src/Store/DeleteStore.mjs'
import ID from '../src/Util/ID/ID.mjs'
/**
* Converts a DS to an array of length 10.

View File

@@ -1,5 +1,5 @@
import { test } from '../node_modules/cutest/cutest.mjs'
import simpleDiff from '../src/Util/simpleDiff.js'
import simpleDiff from '../src/Util/simpleDiff.mjs'
import Chance from 'chance'
function runDiffTest (t, a, b, expected) {

View File

@@ -1,7 +1,7 @@
import { test } from '../node_modules/cutest/cutest.mjs'
import BinaryEncoder from '../src/Util/Binary/Encoder.js'
import BinaryDecoder from '../src/Util/Binary/Decoder.js'
import { generateRandomUint32 } from '../src/Util/generateRandomUint32.js'
import BinaryEncoder from '../src/Util/Binary/Encoder.mjs'
import BinaryDecoder from '../src/Util/Binary/Decoder.mjs'
import { generateRandomUint32 } from '../src/Util/generateRandomUint32.mjs'
import Chance from 'chance'
function testEncoding (t, write, read, val) {

View File

@@ -1,7 +0,0 @@
import './red-black-tree.js'
import './y-array.tests.js'
import './y-text.tests.js'
import './y-map.tests.js'
import './y-xml.tests.js'
import './encode-decode.tests.js'
import './diff.tests.js'

7
test/index.mjs Normal file
View File

@@ -0,0 +1,7 @@
import './red-black-tree.mjs'
import './y-array.tests.mjs'
import './y-text.tests.mjs'
import './y-map.tests.mjs'
import './y-xml.tests.mjs'
import './encode-decode.tests.mjs'
import './diff.tests.mjs'

View File

@@ -1,5 +1,5 @@
import RedBlackTree from '../src/Util/Tree.js'
import ID from '../src/Util/ID/ID.js'
import RedBlackTree from '../src/Util/Tree.mjs'
import ID from '../src/Util/ID/ID.mjs'
import Chance from 'chance'
import { test, proxyConsole } from 'cutest'

View File

@@ -1,4 +1,4 @@
import { wait, initArrays, compareUsers, Y, flushAll, applyRandomTests } from '../tests-lib/helper.js'
import { wait, initArrays, compareUsers, Y, flushAll, applyRandomTests } from '../tests-lib/helper.mjs'
import { test, proxyConsole } from 'cutest'
proxyConsole()

View File

@@ -1,4 +1,4 @@
import { initArrays, compareUsers, Y, flushAll, applyRandomTests } from '../tests-lib/helper.js'
import { initArrays, compareUsers, Y, flushAll, applyRandomTests } from '../tests-lib/helper.mjs'
import { test, proxyConsole } from 'cutest'
proxyConsole()

View File

@@ -1,4 +1,4 @@
import { initArrays, compareUsers, flushAll } from '../tests-lib/helper.js'
import { initArrays, compareUsers, flushAll } from '../tests-lib/helper.mjs'
import { test, proxyConsole } from 'cutest'
proxyConsole()

View File

@@ -1,4 +1,4 @@
import { wait, initArrays, compareUsers, Y, flushAll, applyRandomTests } from '../../yjs/tests-lib/helper.js'
import { wait, initArrays, compareUsers, Y, flushAll, applyRandomTests } from '../../yjs/tests-lib/helper.mjs'
import { test } from 'cutest'
test('set property', async function xml0 (t) {