registry tests

This commit is contained in:
guybedford
2014-02-11 16:10:53 +02:00
parent bbfee33c7c
commit fcd5a654ae
7 changed files with 67 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
System.paths['npm:*'] = 'jspm_packages/npm/*.js';
System.paths['github:*'] = 'jspm_packages/github/*.js';
System.paths['registry-tests/*'] = 'tests/*.js';
System.paths['tests/*'] = 'tests/*.js';
System.map = {
'mocha': 'npm:mocha@^1.17.1',
'angular': 'github:angular/bower-angular@^1.2.12',
'npm:mocha@1.17.1': {
'css': 'github:systemjs/plugin-css@master'
}
};
System.versions = {
'github:angular/bower-angular': '1.2.12',
'npm:mocha': '1.17.1',
'github:systemjs/plugin-css': 'master'
};
+13
View File
@@ -0,0 +1,13 @@
{
"name": "tests",
"directories": {
"lib": "tests",
"dist": "dist"
},
"configFile": "config.js",
"registry": "jspm",
"dependencies": {
"mocha": "^1.17.1",
"angular": "^1.2.12"
}
}
Executable
+1
View File
@@ -0,0 +1 @@
jspm install
+20
View File
@@ -0,0 +1,20 @@
<!doctype html>
<script src="jspm_packages/system@0.4.1.js"></script>
<script src="config.js"></script>
<body><div id="mocha"></div></body>
<script>
System.import('mocha').then(function(mocha) {
mocha.setup('tdd');
System.import('tests/tests').then(function() {
mocha.run();
})
.catch(function(e) {
setTimeout(function() {
throw e;
}, 1);
});
});
</script>
+7
View File
@@ -0,0 +1,7 @@
suite('Angular', function() {
test('load', function(done) {
System.import('angular').then(function() {
done();
});
});
});
+3
View File
@@ -0,0 +1,3 @@
suite('Angular', function() {
require('tests/angular');
});