57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
<!-- #docregion -->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
|
<title>Ng App 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="../node_modules/systemjs/dist/system.src.js"></script>
|
|
<script src="../node_modules/angular2/bundles/angular2.dev.js"></script>
|
|
|
|
<script src="../node_modules/angular2/bundles/testing.js"></script>
|
|
<script src="../node_modules/zone.js/dist/jasmine-patch.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
(function() {
|
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 100;
|
|
|
|
System.config({
|
|
packages: {
|
|
'app': {defaultExtension: 'js'},
|
|
'test-helpers': {defaultExtension: 'js'}
|
|
}
|
|
});
|
|
|
|
var imports = [
|
|
'app/hero.spec',
|
|
'app/init-caps-pipe.spec',
|
|
'app/hero.service.no-ng.1.spec',
|
|
|
|
'test-helpers/dom-setup', // Essential for specs that touch the DOM
|
|
|
|
'app/hero.service.no-ng.spec',
|
|
'app/hero.service.ng.spec',
|
|
|
|
'app/heroes.component.no-ng.spec',
|
|
'app/heroes.component.ng.spec',
|
|
'app/hero-detail.component.spec',
|
|
|
|
'@empty' // safe sentinel
|
|
|
|
].map(function(spec) {return System.import(spec);});
|
|
|
|
Promise.all(imports)
|
|
.then(window.onload) // re-execute Jasmine's buildup
|
|
.catch(console.error.bind(console));
|
|
})();
|
|
</script>
|
|
</body>
|
|
|
|
</html> |