Move common setup to spec_helpers.js

This commit is contained in:
John Firebaugh
2013-02-06 14:04:19 -08:00
parent bd8c9d6a00
commit 104b02eda1
3 changed files with 9 additions and 18 deletions
-9
View File
@@ -134,15 +134,6 @@
<script src='../data/data.js'></script>
<script src='../data/deprecated.js'></script>
<script>
iD.debug = true;
mocha.setup({
ui: 'bdd',
globals: ['__onresize.tail-size', '__onmousemove.zoom', '__onmouseup.zoom', '__onclick.draw']
});
var expect = chai.expect;
</script>
<script src="spec/spec_helpers.js"></script>
<!-- include spec files here... -->
-9
View File
@@ -18,15 +18,6 @@
<!-- include source files here... -->
<script src='../iD.min.js'></script>
<script>
iD.debug = true;
mocha.setup({
ui: 'bdd',
globals: ['__onresize.tail-size']
});
var expect = chai.expect;
</script>
<script src="spec/spec_helpers.js"></script>
<!-- include spec files here... -->
+9
View File
@@ -1,3 +1,12 @@
iD.debug = true;
mocha.setup({
ui: 'bdd',
globals: ['__onresize.tail-size', '__onmousemove.zoom', '__onmouseup.zoom', '__onclick.draw']
});
var expect = chai.expect;
chai.use(function (chai, utils) {
var flag = utils.flag;