Commit aadff6eb authored by Mike Bostock's avatar Mike Bostock
Browse files

Add missing exports.

parent 14434c57
......@@ -28,6 +28,7 @@ export {
shuffle,
sum,
ticks,
tickStep,
transpose,
variance,
zip
......@@ -368,6 +369,7 @@ export {
scaleCategory20b,
scaleCategory20c,
scaleCategory20,
scaleSequential,
scaleCubehelix,
scaleRainbow,
scaleWarm,
......@@ -398,6 +400,7 @@ export {
export {
active,
interrupt,
transition
} from "d3-transition";
......
var tape = require("tape"),
d3 = require("../");
d3 = require("../"),
testExports = require("./test-exports");
tape("version matches package.json", function(test) {
test.equal(d3.version, require("../package.json").version);
test.end();
});
testExports("d3-array");
testExports("d3-axis");
testExports("d3-collection");
testExports("d3-color");
testExports("d3-dispatch");
testExports("d3-drag");
testExports("d3-dsv");
testExports("d3-ease");
testExports("d3-force");
testExports("d3-format");
testExports("d3-hierarchy");
testExports("d3-interpolate");
testExports("d3-path");
testExports("d3-polygon");
testExports("d3-quadtree");
testExports("d3-queue");
testExports("d3-random");
testExports("d3-request");
testExports("d3-scale");
testExports("d3-selection");
testExports("d3-shape");
testExports("d3-time");
testExports("d3-time-format");
testExports("d3-timer");
testExports("d3-transition");
testExports("d3-voronoi");
testExports("d3-zoom");
var tape = require("tape"),
d3 = require("../");
module.exports = function(moduleName) {
var module = require(moduleName);
tape("d3 exports everything from " + moduleName, function(test) {
for (var symbol in module) {
if (symbol !== "version") {
test.equal(symbol in d3, true, moduleName + " export " + symbol);
}
}
test.end();
});
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment