Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdd7144

Browse files
committed
test: fixup frame test
- so that dlft config gets coerced in gd._context (which is only done during Plotly.plot)
1 parent 8cd3ada commit bdd7144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/frame_api_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ describe('Test frame api', function() {
1212
beforeEach(function(done) {
1313
mock = [{x: [1, 2, 3], y: [2, 1, 3]}, {x: [1, 2, 3], y: [6, 4, 5]}];
1414
gd = createGraphDiv();
15+
Plotly.setPlotConfig({ queueLength: 10 });
16+
1517
Plotly.plot(gd, mock).then(function() {
1618
f = gd._transitionData._frames;
1719
h = gd._transitionData._frameHash;
18-
}).then(function() {
19-
Plotly.setPlotConfig({ queueLength: 10 });
2020
}).then(done);
2121
});
2222

0 commit comments

Comments
 (0)