File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1264,11 +1264,11 @@ describe('Test axes', function() {
1264
1264
// way of getting a new clean copy each time.
1265
1265
function getDefaultAx ( ) {
1266
1266
return {
1267
+ autorange : true ,
1267
1268
c2l : Number ,
1268
1269
type : 'linear' ,
1269
1270
_length : 100 ,
1270
- _m : 1 ,
1271
- _needsExpand : true
1271
+ _m : 1
1272
1272
} ;
1273
1273
}
1274
1274
@@ -1284,15 +1284,14 @@ describe('Test axes', function() {
1284
1284
1285
1285
it ( 'calls ax.setScale if necessary' , function ( ) {
1286
1286
ax = {
1287
+ autorange : true ,
1287
1288
c2l : Number ,
1288
1289
type : 'linear' ,
1289
- setScale : function ( ) { } ,
1290
- _needsExpand : true
1290
+ setScale : function ( ) { }
1291
1291
} ;
1292
1292
spyOn ( ax , 'setScale' ) ;
1293
- data = [ 1 ] ;
1294
1293
1295
- expand ( ax , data ) ;
1294
+ expand ( ax , [ 1 ] ) ;
1296
1295
1297
1296
expect ( ax . setScale ) . toHaveBeenCalled ( ) ;
1298
1297
} ) ;
You can’t perform that action at this time.
0 commit comments