Restore the global d3 (needed so tests use the same d3.event as iD?)

This commit is contained in:
Bryan Housel
2017-09-27 10:39:03 -04:00
parent 9f1d476594
commit b5168c1070
3 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import * as d3 from 'd3'; // TODO: remove (needed for tests?)
export * from './actions/index';
export * from './behavior/index';
export * from './core/index';
@@ -43,4 +45,4 @@ export var debug = false;
import * as lib from './lib/index';
export { lib };
export { lib, d3 };
+1 -1
View File
@@ -5,7 +5,7 @@
<title>Mocha Tests</title>
<link rel='stylesheet' href='../node_modules/mocha/mocha.css'>
<link rel='stylesheet' href='../dist/iD.css'>
<script src='../node_modules/d3/build/d3.js'></script>
<!-- <script src='../node_modules/d3/build/d3.js'></script> -->
</head>
<body style="overflow:scroll">
<div id='mocha'></div>
+2
View File
@@ -20,3 +20,5 @@ mocha.setup({
});
expect = chai.expect;
window.d3 = iD.d3; // TODO: remove