-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
test.js
91 lines (88 loc) · 2.26 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { runTests } from './testing.js'
import * as array from './array.test.js'
import * as broadcastchannel from './broadcastchannel.test.js'
import * as crypto from './crypto.test.js'
import * as rabin from './hash/rabin.test.js'
import * as sha256 from './hash/sha256.test.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 indexeddbV2 from './indexeddbV2.test.js'
import * as prng from './prng.test.js'
import * as log from 'lib0/logging'
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 queue from './queue.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 observable from './observable.test.js'
import * as pledge from './pledge.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 set from './set.test.js'
import * as sort from './sort.test.js'
import * as url from './url.test.js'
import * as metric from './metric.test.js'
import * as func from './function.test.js'
import * as storage from './storage.test.js'
import * as list from './list.test.js'
import * as cache from './cache.test.js'
import * as symbol from './symbol.test.js'
import { isBrowser, isNode } from './environment.js'
/* c8 ignore next */
if (isBrowser) {
log.createVConsole(document.body)
}
runTests({
array,
broadcastchannel,
crypto,
rabin,
sha256,
logging,
string,
encoding,
diff,
testing,
indexeddb,
indexeddbV2,
prng,
statistics,
binary,
random,
promise,
queue,
map,
eventloop,
time,
pair,
object,
observable,
pledge,
math,
number,
buffer,
set,
sort,
url,
metric,
func,
storage,
list,
cache,
symbol
}).then(success => {
/* c8 ignore next */
if (isNode) {
process.exit(success ? 0 : 1)
}
})