angular test
This commit is contained in:
+15
-3
@@ -2,12 +2,24 @@
|
||||
<script src="jspm_packages/system@0.4.1.js"></script>
|
||||
<script src="config.js"></script>
|
||||
|
||||
<body><div id="mocha"></div></body>
|
||||
<body>
|
||||
<div id="mocha"></div>
|
||||
<div id="sandbox"></div>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
System.import('mocha').then(function(mocha) {
|
||||
mocha.setup('tdd');
|
||||
System.import('tests/tests').then(function() {
|
||||
System.import('tests/tests').then(function(suites) {
|
||||
mocha.setup('tdd');
|
||||
for (var s in suites) {
|
||||
suite(s, function() {
|
||||
setup(function() {
|
||||
document.querySelector("#sandbox").innerHTML = '';
|
||||
});
|
||||
for (var t in suites[s])
|
||||
test(t, suites[s][t]);
|
||||
});
|
||||
}
|
||||
mocha.run();
|
||||
})
|
||||
.catch(function(e) {
|
||||
|
||||
Reference in New Issue
Block a user