Skip to content

Commit ff0cea3

Browse files
committed
🔪 a little unnecessary async in hover tests
1 parent f8264b4 commit ff0cea3

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

test/jasmine/tests/hover_label_test.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,7 @@ describe('hover info', function() {
502502
nums: 'x: 1\ny: 3\nz: 2',
503503
name: 'two'
504504
});
505-
})
506-
.then(function() {
505+
507506
_hover(gd, 250, 300);
508507
assertHoverLabelContent({
509508
nums: 'x: 1\ny: 1\nz: 2',
@@ -539,8 +538,7 @@ describe('hover info', function() {
539538
nums: 'x: 1\ny: 3\nz: 2',
540539
name: 'two'
541540
});
542-
})
543-
.then(function() {
541+
544542
_hover(gd, 250, 300);
545543
assertHoverLabelContent({
546544
nums: 'x: 1\ny: 1\nz: 5.56',
@@ -615,8 +613,7 @@ describe('hover info', function() {
615613
nums: 'x: 1\ny: 3\nz: 2',
616614
name: 'two'
617615
});
618-
})
619-
.then(function() {
616+
620617
_hover(gd, 250, 300);
621618
assertHoverLabelContent({
622619
nums: 'x: 1\ny: 1\nz: 5.56',
@@ -724,8 +721,7 @@ describe('hover info', function() {
724721
nums: 'x: 1\ny: 3\nz: 2',
725722
name: 'two'
726723
});
727-
})
728-
.then(function() {
724+
729725
_hover(gd, 250, 300);
730726
assertHoverLabelContent({
731727
nums: 'x: 1\ny: 1\nz: 5.56',
@@ -763,8 +759,7 @@ describe('hover info', function() {
763759
nums: 'x: 1\ny: 3\nz: 2',
764760
name: 'two'
765761
});
766-
})
767-
.then(function() {
762+
768763
_hover(gd, 250, 270);
769764
assertHoverLabelContent({
770765
nums: 'x: 1\ny: 1\nz: 5.56',

0 commit comments

Comments
 (0)