angular-cn/public/docs/_examples/testing/ts/unit-tests-6.html.not-yet

46 lines
1.4 KiB
Plaintext
Raw Normal View History

<!-- #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.spec',
'app/hero.service.ng.spec',
].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>