1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | var used = [];
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | exports.version = '4.3.3';
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | exports.AssertionError = require('assertion-error');
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | var util = require('./chai/utils');
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | exports.use = function (fn) {
|
38 | if (!~used.indexOf(fn)) {
|
39 | fn(exports, util);
|
40 | used.push(fn);
|
41 | }
|
42 |
|
43 | return exports;
|
44 | };
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | exports.util = util;
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | var config = require('./chai/config');
|
57 | exports.config = config;
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | var assertion = require('./chai/assertion');
|
64 | exports.use(assertion);
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | var core = require('./chai/core/assertions');
|
71 | exports.use(core);
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 | var expect = require('./chai/interface/expect');
|
78 | exports.use(expect);
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 | var should = require('./chai/interface/should');
|
85 | exports.use(should);
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 | var assert = require('./chai/interface/assert');
|
92 | exports.use(assert);
|