2019-03-01 23:26:40 +01:00
|
|
|
|
2019-03-11 00:00:41 +01:00
|
|
|
import * as map from './y-map.tests.js'
|
2020-07-12 09:26:08 -06:00
|
|
|
import * as array from './y-array.tests.js'
|
2019-03-12 01:22:06 +01:00
|
|
|
import * as text from './y-text.tests.js'
|
2019-03-12 01:42:51 +01:00
|
|
|
import * as xml from './y-xml.tests.js'
|
2019-04-07 23:08:08 +02:00
|
|
|
import * as encoding from './encoding.tests.js'
|
2019-06-23 13:04:14 +02:00
|
|
|
import * as undoredo from './undo-redo.tests.js'
|
2020-06-19 21:45:10 +02:00
|
|
|
import * as compatibility from './compatibility.tests.js'
|
2020-07-12 18:39:15 +02:00
|
|
|
import * as doc from './doc.tests.js'
|
2019-03-01 23:26:40 +01:00
|
|
|
|
2019-04-04 19:35:38 +02:00
|
|
|
import { runTests } from 'lib0/testing.js'
|
2019-04-05 21:06:43 +02:00
|
|
|
import { isBrowser, isNode } from 'lib0/environment.js'
|
2019-04-04 19:35:38 +02:00
|
|
|
import * as log from 'lib0/logging.js'
|
|
|
|
|
|
2019-03-01 23:26:40 +01:00
|
|
|
if (isBrowser) {
|
|
|
|
|
log.createVConsole(document.body)
|
|
|
|
|
}
|
2019-04-05 21:06:43 +02:00
|
|
|
runTests({
|
2020-07-12 18:50:32 +02:00
|
|
|
doc, map, array, text, xml, encoding, undoredo, compatibility
|
2019-04-05 21:06:43 +02:00
|
|
|
}).then(success => {
|
|
|
|
|
/* istanbul ignore next */
|
|
|
|
|
if (isNode) {
|
|
|
|
|
process.exit(success ? 0 : 1)
|
|
|
|
|
}
|
|
|
|
|
})
|