registry tests
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"main": "angular.min"
|
||||||
|
}
|
||||||
@@ -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'
|
||||||
|
};
|
||||||
|
|
||||||
@@ -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
@@ -0,0 +1 @@
|
|||||||
|
jspm install
|
||||||
@@ -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>
|
||||||
|
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
suite('Angular', function() {
|
||||||
|
test('load', function(done) {
|
||||||
|
System.import('angular').then(function() {
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
suite('Angular', function() {
|
||||||
|
require('tests/angular');
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user