-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtest-main.js
67 lines (59 loc) · 1.64 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
56
57
58
59
60
61
62
63
64
65
/*
* 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/w20-core.w20.json': {
modules: {
application: {
id: 'w20-test',
home: '/test'
},
culture: {
available: [
'en-GB',
'fr-FR'
],
default: 'en-GB',
translationFallback: true
},
ui: {
'expandedRouteCategories': ['category1.category11']
},
hypermedia: {}
},
vars: {
'components-path': '/base/node_modules'
}
},
'base/specs/fragment-test/fragment-test.w20.json': {
},
'/base/optional-fragment.w20.json': {
optional: true
},
'/base/ignored-fragment.w20.json': {
ignore: true
}
},
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/modules/w20.js' ]);