-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest-main.js
55 lines (50 loc) · 1.36 KB
/
test-main.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
/**
* Created by e444429 on 21/04/2016.
*/
/*
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
var tests = [];
for (var file in window.__karma__.files) {
if (/.spec\.js$/.test(file)) {
tests.push(file);
}
}
window.w20 = {
configuration: {
'/base/node_modules/@w20/w20/w20-core.w20.json': {
modules: {
application: {
id: 'w20-test',
home: '/test'
}
},
vars: {
'components-path': '/base/node_modules'
}
},
'base/w20-dataviz.w20.json': {
modules: {
dygraphs: {}
},
vars: {
'components-path': '/base/node_modules'
}
}
},
deps: tests,
callback: window.__karma__.start
};
requirejs.config({
paths: {
'{angular-mocks}': '/base/node_modules/angular-mocks'
},
shim: {
'{angular-mocks}/angular-mocks': [ '{angular}/angular' ]
}
});
requirejs([ '/base/node_modules/@w20/w20/modules/w20.js' ]);