y-webrtc/test/index.js
2021-11-10 10:01:48 +01:00

19 lines
357 B
JavaScript

import * as crypto from './crypto.test.js'
import { runTests } from 'lib0/testing'
import { isBrowser, isNode } from 'lib0/environment'
import * as log from 'lib0/logging'
if (isBrowser) {
log.createVConsole(document.body)
}
runTests({
crypto
}).then(success => {
/* istanbul ignore next */
if (isNode) {
process.exit(success ? 0 : 1)
}
})