This repository was archived by the owner on Jun 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtest-main.js
More file actions
49 lines (47 loc) · 1.23 KB
/
test-main.js
File metadata and controls
49 lines (47 loc) · 1.23 KB
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
var tests = [];
for (var file in window.__karma__.files) {
if (window.__karma__.files.hasOwnProperty(file)) {
if (/Spec\.js$/.test(file)) {
tests.push(file);
} else {
}
}
}
requirejs.config({
baseUrl: '/base/app/',
paths: {
angular: 'vendor/angular/angular.min',
'angular-mocks': 'vendor/angular-mocks/angular-mocks',
'angular-route': 'vendor/angular-route/angular-route',
'angular-ui-router': 'vendor/angular-ui-router/release/angular-ui-router',
bootstrap: 'vendor/bootstrap/dist/js/bootstrap',
/**
* It is needed to declare the resource views file path
* to handle the file dependencies such as angular before
* the resource is loaded.
*/
'resource-views':'src/resources/views'
},
packages: [
],
shim: {
'angular-ui-router': {
deps: [
'angular',
'angular-route'
]
},
'angular-route': {
deps: [
'angular'
]
},
'resource-views': {
deps: [
'angular'
]
}
},
deps: tests,
callback: window.__karma__.start
});