@@ -263,7 +263,7 @@ describe('Test histogram2d', function() {
263
263
expect ( gd . data [ 0 ] . autobiny ) . toBeUndefined ( ) ;
264
264
}
265
265
266
- it ( 'handles autobin correctly on restyles' , function ( ) {
266
+ it ( 'handles autobin correctly on restyles' , function ( done ) {
267
267
var x1 = [
268
268
1 , 1 , 1 , 1 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 ,
269
269
1 , 1 , 1 , 1 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 ] ;
@@ -322,10 +322,12 @@ describe('Test histogram2d', function() {
322
322
{ start : - 0.5 , end : 59.5 , size : 20 } ,
323
323
{ start : - 0.5 , end : 59.5 , size : 20 } ,
324
324
undefined , undefined ) ;
325
- } ) ;
325
+ } )
326
+ . catch ( failTest )
327
+ . then ( done ) ;
326
328
} ) ;
327
329
328
- it ( 'respects explicit autobin: false as a one-time autobin' , function ( ) {
330
+ it ( 'respects explicit autobin: false as a one-time autobin' , function ( done ) {
329
331
// patched in for backward compat, but there aren't really
330
332
// autobinx/autobiny attributes anymore
331
333
var x1 = [
@@ -344,7 +346,9 @@ describe('Test histogram2d', function() {
344
346
} )
345
347
. then ( function ( ) {
346
348
_assert ( binSpec , binSpec , binSpec , binSpec ) ;
347
- } ) ;
349
+ } )
350
+ . catch ( failTest )
351
+ . then ( done ) ;
348
352
} ) ;
349
353
} ) ;
350
354
} ) ;
0 commit comments