-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit-tests.html
executable file
·34 lines (31 loc) · 1.16 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Ng App Unit Tests</title>
<script src="https://jspm.io/[email protected]"></script>
<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="bower_components/lodash/dist/lodash.js"></script>
<script src="bower_components/Snap.svg/dist/snap.svg.js"></script>
</head>
<body>
<script>
System.config({
packages: {
'src': {defaultExtension: 'js'}
},
baseURL: 'src/'
});
System.import('./tests/car.spec')
// #4. wait for all imports to load ...
// then re-execute `window.onload` which
// triggers the Jasmine test-runner start
// or explain what went wrong.
.then(window.onload)
.catch(console.error.bind(console));
</script>
</body>
</html>