2019-03-01 23:26:40 +01:00
|
|
|
|
2019-03-05 14:00:31 +01:00
|
|
|
import * as array from './y-array.tests.js'
|
2019-03-11 00:00:41 +01:00
|
|
|
import * as map from './y-map.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-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({
|
|
|
|
|
map, array, text, xml
|
|
|
|
|
}).then(success => {
|
|
|
|
|
/* istanbul ignore next */
|
|
|
|
|
if (isNode) {
|
|
|
|
|
process.exit(success ? 0 : 1)
|
|
|
|
|
}
|
|
|
|
|
})
|