forked from dmonad/lib0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
57 lines (54 loc) · 1.36 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { runTests } from './testing.js'
import * as logging from './logging.test.js'
import * as string from './string.test.js'
import * as encoding from './encoding.test.js'
import * as diff from './diff.test.js'
import * as testing from './testing.test.js'
import * as indexeddb from './indexeddb.test.js'
import * as prng from './prng.test.js'
import * as log from './logging.js'
import * as statistics from './statistics.test.js'
import * as binary from './binary.test.js'
import * as random from './random.test.js'
import * as promise from './promise.test.js'
import * as map from './map.test.js'
import * as eventloop from './eventloop.test.js'
import * as time from './time.test.js'
import * as pair from './pair.test.js'
import * as object from './object.test.js'
import * as math from './math.test.js'
import * as number from './number.test.js'
import * as buffer from './buffer.test.js'
import * as sort from './sort.test.js'
import { isBrowser, isNode } from './environment.js'
/* istanbul ignore if */
if (isBrowser) {
log.createVConsole(document.body)
}
runTests({
logging,
string,
encoding,
diff,
testing,
indexeddb,
prng,
statistics,
binary,
random,
promise,
map,
eventloop,
time,
pair,
object,
math,
number,
buffer,
sort
}).then(success => {
/* istanbul ignore next */
if (isNode) {
process.exit(success ? 0 : 1)
}
})