mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
40 lines
868 B
HTML
40 lines
868 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css"/>
|
|
|
|
<!-- used for IE testing -->
|
|
<script src="../node_modules/bluebird/js/browser/bluebird.js"></script>
|
|
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
|
|
|
<script src="../dist/system.src.js" type="text/javascript"></script>
|
|
|
|
<script>
|
|
mocha.setup('tdd');
|
|
|
|
SystemJS.config({
|
|
traceurOptions: {
|
|
asyncFunctions: true
|
|
},
|
|
warnings: true,
|
|
map: {
|
|
'plugin-traceur': '../node_modules/systemjs-plugin-traceur/plugin-traceur.js',
|
|
'traceur': '../node_modules/traceur/bin/traceur.js'
|
|
},
|
|
meta: {
|
|
'traceur': {
|
|
format: 'global',
|
|
exports: 'traceur'
|
|
}
|
|
},
|
|
transpiler: 'plugin-traceur'
|
|
});
|
|
|
|
SystemJS.import('test.js')
|
|
.then(function () {
|
|
mocha.run();
|
|
});
|
|
</script>
|
|
|
|
<div id="mocha"></div>
|