Skip to content

Commit 0cbaca4

Browse files
committed
fixup Axes.expand tests
- rm obsolete _needsExpand - mock with `ax.autorange: true`
1 parent 7357f82 commit 0cbaca4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/jasmine/tests/axes_test.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1264,11 +1264,11 @@ describe('Test axes', function() {
12641264
// way of getting a new clean copy each time.
12651265
function getDefaultAx() {
12661266
return {
1267+
autorange: true,
12671268
c2l: Number,
12681269
type: 'linear',
12691270
_length: 100,
1270-
_m: 1,
1271-
_needsExpand: true
1271+
_m: 1
12721272
};
12731273
}
12741274

@@ -1284,15 +1284,14 @@ describe('Test axes', function() {
12841284

12851285
it('calls ax.setScale if necessary', function() {
12861286
ax = {
1287+
autorange: true,
12871288
c2l: Number,
12881289
type: 'linear',
1289-
setScale: function() {},
1290-
_needsExpand: true
1290+
setScale: function() {}
12911291
};
12921292
spyOn(ax, 'setScale');
1293-
data = [1];
12941293

1295-
expand(ax, data);
1294+
expand(ax, [1]);
12961295

12971296
expect(ax.setScale).toHaveBeenCalled();
12981297
});

0 commit comments

Comments
 (0)