-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkarma-test-main.js
42 lines (39 loc) · 953 Bytes
/
karma-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
var tests = [];
for (var file in window.__karma__.files) {
if (window.__karma__.files.hasOwnProperty(file)) {
//if (/\.spec\.ts/.test(file)) {
if (/karma-test-shim\.js$/.test(file)) {
tests.push(file);
}
}
}
window.dojoConfig = {
packages: [{
name: "local",
location: "/base"
}, {
name: "esri",
location: "http://js.arcgis.com/4.5/esri"
}, {
name: "dojo",
location: "http://js.arcgis.com/4.5/dojo"
}, {
name: "dojox",
location: "http://js.arcgis.com/4.5/dojox"
}, {
name: "dijit",
location: "http://js.arcgis.com/4.5/dijit"
}, {
name: 'moment',
location: 'http://js.arcgis.com/4.5/moment',
main: 'moment'
}],
async: false
};
/**
* This function must be defined and is called back by the dojo adapter
* @returns {string} a list of dojo spec/test modules to register with your testing framework
*/
window.__karma__.dojoStart = function () {
return tests;
};