mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-27 02:12:24 +02:00
Restore the global d3 (needed so tests use the same d3.event as iD?)
This commit is contained in:
+3
-1
@@ -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
@@ -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>
|
||||
|
||||
@@ -20,3 +20,5 @@ mocha.setup({
|
||||
});
|
||||
|
||||
expect = chai.expect;
|
||||
|
||||
window.d3 = iD.d3; // TODO: remove
|
||||
|
||||
Reference in New Issue
Block a user