UNPKG

1.83 kBJavaScriptView Raw
1import { runTests } from './testing.js'
2import * as array from './array.test.js'
3import * as logging from './logging.test.js'
4import * as string from './string.test.js'
5import * as encoding from './encoding.test.js'
6import * as diff from './diff.test.js'
7import * as testing from './testing.test.js'
8import * as indexeddb from './indexeddb.test.js'
9import * as prng from './prng.test.js'
10import * as log from './logging.js'
11import * as statistics from './statistics.test.js'
12import * as binary from './binary.test.js'
13import * as random from './random.test.js'
14import * as promise from './promise.test.js'
15import * as queue from './queue.test.js'
16import * as map from './map.test.js'
17import * as eventloop from './eventloop.test.js'
18import * as time from './time.test.js'
19import * as pair from './pair.test.js'
20import * as object from './object.test.js'
21import * as math from './math.test.js'
22import * as number from './number.test.js'
23import * as buffer from './buffer.test.js'
24import * as set from './set.test.js'
25import * as sort from './sort.test.js'
26import * as url from './url.test.js'
27import * as metric from './metric.test.js'
28import * as func from './function.test.js'
29import * as storage from './storage.test.js'
30import * as list from './list.test.js'
31import * as cache from './cache.test.js'
32
33import { isBrowser, isNode } from './environment.js'
34
35/* istanbul ignore if */
36if (isBrowser) {
37 log.createVConsole(document.body)
38}
39
40runTests({
41 array,
42 logging,
43 string,
44 encoding,
45 diff,
46 testing,
47 indexeddb,
48 prng,
49 statistics,
50 binary,
51 random,
52 promise,
53 queue,
54 map,
55 eventloop,
56 time,
57 pair,
58 object,
59 math,
60 number,
61 buffer,
62 set,
63 sort,
64 url,
65 metric,
66 func,
67 storage,
68 list,
69 cache
70}).then(success => {
71 /* istanbul ignore next */
72 if (isNode) {
73 process.exit(success ? 0 : 1)
74 }
75})