Skip to content

Commit 230544f

Browse files
committed
no foreach may help run the CI
1 parent 8241bc8 commit 230544f

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

test/jasmine/tests/sankey_test.js

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,16 +1053,24 @@ describe('sankey tests', function() {
10531053
.then(done);
10541054
});
10551055

1056-
['node', 'link'].forEach(function(obj) {
1057-
it('@flaky should not output hover/unhover event data when ' + obj + '.hoverinfo is skip', function(done) {
1058-
var fig = Lib.extendDeep({}, mock);
1056+
it('should not output hover/unhover event data when link.hoverinfo is skip', function(done) {
1057+
var fig = Lib.extendDeep({}, mock);
10591058

1060-
Plotly.plot(gd, fig)
1061-
.then(function() { return Plotly.restyle(gd, obj + '.hoverinfo', 'skip'); })
1062-
.then(assertNoHoverEvents(obj))
1063-
.catch(failTest)
1064-
.then(done);
1065-
});
1059+
Plotly.plot(gd, fig)
1060+
.then(function() { return Plotly.restyle(gd, 'link.hoverinfo', 'skip'); })
1061+
.then(assertNoHoverEvents('link'))
1062+
.catch(failTest)
1063+
.then(done);
1064+
});
1065+
1066+
it('should not output hover/unhover event data when node.hoverinfo is skip', function(done) {
1067+
var fig = Lib.extendDeep({}, mock);
1068+
1069+
Plotly.plot(gd, fig)
1070+
.then(function() { return Plotly.restyle(gd, 'node.hoverinfo', 'skip'); })
1071+
.then(assertNoHoverEvents('node'))
1072+
.catch(failTest)
1073+
.then(done);
10661074
});
10671075
});
10681076

0 commit comments

Comments
 (0)