Skip to content

Commit aadff6e

Browse files
committed
Add missing exports.
1 parent 14434c5 commit aadff6e

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export {
2828
shuffle,
2929
sum,
3030
ticks,
31+
tickStep,
3132
transpose,
3233
variance,
3334
zip
@@ -368,6 +369,7 @@ export {
368369
scaleCategory20b,
369370
scaleCategory20c,
370371
scaleCategory20,
372+
scaleSequential,
371373
scaleCubehelix,
372374
scaleRainbow,
373375
scaleWarm,
@@ -398,6 +400,7 @@ export {
398400

399401
export {
400402
active,
403+
interrupt,
401404
transition
402405
} from "d3-transition";
403406

test/d3-test.js

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
11
var tape = require("tape"),
2-
d3 = require("../");
2+
d3 = require("../"),
3+
testExports = require("./test-exports");
34

45
tape("version matches package.json", function(test) {
56
test.equal(d3.version, require("../package.json").version);
67
test.end();
78
});
9+
10+
testExports("d3-array");
11+
testExports("d3-axis");
12+
testExports("d3-collection");
13+
testExports("d3-color");
14+
testExports("d3-dispatch");
15+
testExports("d3-drag");
16+
testExports("d3-dsv");
17+
testExports("d3-ease");
18+
testExports("d3-force");
19+
testExports("d3-format");
20+
testExports("d3-hierarchy");
21+
testExports("d3-interpolate");
22+
testExports("d3-path");
23+
testExports("d3-polygon");
24+
testExports("d3-quadtree");
25+
testExports("d3-queue");
26+
testExports("d3-random");
27+
testExports("d3-request");
28+
testExports("d3-scale");
29+
testExports("d3-selection");
30+
testExports("d3-shape");
31+
testExports("d3-time");
32+
testExports("d3-time-format");
33+
testExports("d3-timer");
34+
testExports("d3-transition");
35+
testExports("d3-voronoi");
36+
testExports("d3-zoom");

test/test-exports.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
var tape = require("tape"),
2+
d3 = require("../");
3+
4+
module.exports = function(moduleName) {
5+
var module = require(moduleName);
6+
tape("d3 exports everything from " + moduleName, function(test) {
7+
for (var symbol in module) {
8+
if (symbol !== "version") {
9+
test.equal(symbol in d3, true, moduleName + " export " + symbol);
10+
}
11+
}
12+
test.end();
13+
});
14+
};

0 commit comments

Comments
 (0)