-
Notifications
You must be signed in to change notification settings - Fork 123
/
unit-tests.html
90 lines (84 loc) · 5.01 KB
/
unit-tests.html
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Mirage - Unit Tests</title>
<link rel="stylesheet" href="./node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
<script src="./node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="./node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script src="./node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>
<script src="./dist/vendor/jquery.min.js"></script>
</head>
<body>
<!-- #1. add the system.js library -->
<script src="./node_modules/zone.js/dist/zone.js"></script>
<script src="./node_modules/reflect-metadata/Reflect.js"></script>
<script src="./node_modules/systemjs/dist/system.src.js"></script>
<script>
var packages = {
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' },
'angular2-in-memory-web-api': { defaultExtension: 'js' },
};
var config = {
map: {
// our app is within the app folder
app: 'app',
// angular bundles
'@angular/core': './node_modules/@angular/core/bundles/core.umd.js',
'@angular/common': './node_modules/@angular/common/bundles/common.umd.js',
'@angular/compiler': './node_modules/@angular/compiler/bundles/compiler.umd.js',
'@angular/platform-browser': './node_modules/@angular/platform-browser/bundles/platform-browser.umd.js',
'@angular/platform-browser-dynamic': './node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
'@angular/http': './node_modules/@angular/http/bundles/http.umd.js',
'@angular/router': './node_modules/@angular/router/bundles/router.umd.js',
'@angular/forms': './node_modules/@angular/forms/bundles/forms.umd.js',
// angular testing umd bundles
'@angular/core/testing': './node_modules/@angular/core/bundles/core-testing.umd.js',
'@angular/common/testing': './node_modules/@angular/common/bundles/common-testing.umd.js',
'@angular/compiler/testing': './node_modules/@angular/compiler/bundles/compiler-testing.umd.js',
'@angular/platform-browser/testing': './node_modules/@angular/platform-browser/bundles/platform-browser-testing.umd.js',
'@angular/platform-browser-dynamic/testing': './node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
'@angular/http/testing': './node_modules/@angular/http/bundles/http-testing.umd.js',
'@angular/router/testing': './node_modules/@angular/router/bundles/router-testing.umd.js',
'@angular/forms/testing': './node_modules/@angular/forms/bundles/forms-testing.umd.js',
// other libraries
'rxjs': './node_modules/rxjs',
'angular2-in-memory-web-api': './node_modules/angular2-in-memory-web-api',
},
packages: packages
}
System.config(config);
Promise.all([
System.import('app/queryBlocks/singlequery/queries/match.query.spec'),
System.import('app/queryBlocks/singlequery/queries/match_phrase.query.spec'),
System.import('app/queryBlocks/singlequery/queries/term.query.spec'),
System.import('app/queryBlocks/singlequery/queries/terms.query.spec'),
System.import('app/queryBlocks/singlequery/queries/exists.query.spec'),
System.import('app/queryBlocks/singlequery/queries/missing.query.spec'),
System.import('app/queryBlocks/singlequery/queries/multi-match.query.spec'),
System.import('app/queryBlocks/singlequery/queries/query_string.query.spec'),
System.import('app/queryBlocks/singlequery/queries/simple_query_string.query.spec'),
System.import('app/queryBlocks/singlequery/queries/prefix.query.spec'),
System.import('app/queryBlocks/singlequery/queries/wildcard.query.spec'),
System.import('app/queryBlocks/singlequery/queries/regexp.query.spec'),
System.import('app/queryBlocks/singlequery/queries/fuzzy.query.spec'),
System.import('app/queryBlocks/singlequery/queries/range.query.spec'),
System.import('app/queryBlocks/singlequery/queries/lt.query.spec'),
System.import('app/queryBlocks/singlequery/queries/gt.query.spec'),
System.import('app/queryBlocks/singlequery/queries/ids.query.spec'),
System.import('app/queryBlocks/singlequery/queries/common.query.spec'),
System.import('app/queryBlocks/singlequery/queries/geodistance.query.spec'),
System.import('app/queryBlocks/singlequery/queries/geoboundingbox.query.spec'),
System.import('app/queryBlocks/singlequery/queries/geodistancerange.query.spec'),
System.import('app/queryBlocks/singlequery/queries/geopolygon.query.spec'),
System.import('app/queryBlocks/singlequery/queries/geohashcell.query.spec'),
System.import('app/queryBlocks/singlequery/queries/geoshape.query.spec'),
System.import('app/queryBlocks/singlequery/queries/span_term.query.spec'),
System.import('app/queryBlocks/singlequery/queries/span_first.query.spec')
])
.then(window.onload)
.catch(console.error.bind(console));
</script>
</body>
</html>