Skip to content

Commit bc31387

Browse files
committed
fix zero tests
1 parent a592c52 commit bc31387

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/scales/scales-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ it("plot(…).scale(name) handles the zero option correctly for descending domai
254254
type: "linear",
255255
domain: [4000, 0],
256256
range: [20, 620],
257-
interpolate: d3.interpolate,
257+
interpolate: d3.interpolateNumber,
258258
clamp: false,
259259
label: "← body_mass_g"
260260
});
@@ -267,7 +267,7 @@ it("plot(…).scale(name) handles the zero option correctly for polylinear domai
267267
type: "linear",
268268
domain: [0, 2000, 4000],
269269
range: [20, 320, 620],
270-
interpolate: d3.interpolate,
270+
interpolate: d3.interpolateNumber,
271271
clamp: false,
272272
label: "body_mass_g →"
273273
});
@@ -280,7 +280,7 @@ it("plot(…).scale(name) handles the zero option correctly for descending polyl
280280
type: "linear",
281281
domain: [4000, 2000, 0],
282282
range: [20, 320, 620],
283-
interpolate: d3.interpolate,
283+
interpolate: d3.interpolateNumber,
284284
clamp: false,
285285
label: "← body_mass_g"
286286
});

0 commit comments

Comments
 (0)