1 | (function(window, karma) {
|
2 | window.should = null;
|
3 | window.should = window.chai.should();
|
4 | window.expect = window.chai.expect;
|
5 | window.assert = window.chai.assert;
|
6 |
|
7 | var chaiConfig = karma.config.chai;
|
8 | if (chaiConfig) {
|
9 | for (var key in chaiConfig) {
|
10 | if (chaiConfig.hasOwnProperty(key)) {
|
11 | window.chai.config[key] = chaiConfig[key];
|
12 | }
|
13 | }
|
14 | }
|
15 |
|
16 | karma.loaded = function() {
|
17 | karma.start(karma.config);
|
18 | };
|
19 | })(window, window.__karma__);
|