Skip to content

Commit e0c684f

Browse files
committed
add missing .catch(failTest)
1 parent 95240e2 commit e0c684f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/jasmine/tests/mapbox_test.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ describe('@noCI, mapbox plots', function() {
351351
})
352352
.then(function() {
353353
expect(countVisibleTraces(gd, modes)).toEqual(1);
354-
355-
done();
356-
});
354+
})
355+
.catch(failTest)
356+
.then(done);
357357
}, LONG_TIMEOUT_INTERVAL);
358358

359359
it('should be able to delete and add traces', function(done) {
@@ -392,9 +392,9 @@ describe('@noCI, mapbox plots', function() {
392392
})
393393
.then(function() {
394394
expect(gd._fullLayout.mapbox === undefined).toBe(true);
395-
396-
done();
397-
});
395+
})
396+
.catch(failTest)
397+
.then(done);
398398
}, LONG_TIMEOUT_INTERVAL);
399399

400400
it('should be able to restyle', function(done) {
@@ -453,6 +453,7 @@ describe('@noCI, mapbox plots', function() {
453453
[1, 0, 0, 1]
454454
]);
455455
})
456+
.catch(failTest)
456457
.then(done);
457458
}, LONG_TIMEOUT_INTERVAL);
458459

0 commit comments

Comments
 (0)