Skip to content

Commit b4c5a1d

Browse files
Plots.resize - fix formatting
1 parent e84a1a9 commit b4c5a1d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/jasmine/tests/plot_promise_test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -504,22 +504,22 @@ describe('Plotly.___ methods', function() {
504504
destroyGraphDiv();
505505

506506
resizePromise
507-
.catch(failTest)
508-
.then(done);
507+
.catch(failTest)
508+
.then(done);
509509
});
510510

511511
it('should return a resolved promise and purge plotly attributes', function(done) {
512512
Plotly.Plots.resize(initialDiv)
513-
.then(function(gd) {
514-
Plotly.purge(gd);
515-
destroyGraphDiv();
516-
517-
expect(gd).toBeDefined();
518-
expect(typeof gd).toBe('object');
519-
expect(gd.layout).toBeUndefined();
520-
})
521-
.catch(failTest)
522-
.then(done);
513+
.then(function(gd) {
514+
Plotly.purge(gd);
515+
destroyGraphDiv();
516+
517+
expect(gd).toBeDefined();
518+
expect(typeof gd).toBe('object');
519+
expect(gd.layout).toBeUndefined();
520+
})
521+
.catch(failTest)
522+
.then(done);
523523
});
524524

525525
it('errors before even generating a promise if gd is not defined', function() {

0 commit comments

Comments
 (0)