Skip to content
  • Sponsor plotly/react-plotly.js

  • Notifications You must be signed in to change notification settings
  • Fork 137
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 59bb64a

Browse files
committedSep 7, 2021
plot method no longer available in plotly.js v2
1 parent 40dfac1 commit 59bb64a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/__mocks__/plotly.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ const state = {};
44
const ASYNC_DELAY = 1;
55

66
export default {
7-
plot: jest.fn((gd) => {
8-
state.gd = gd;
9-
setTimeout(() => {
10-
state.gd.emit('plotly_afterplot');
11-
}, ASYNC_DELAY);
12-
}),
137
newPlot: jest.fn((gd) => {
148
state.gd = gd;
159
EventEmitter(state.gd); // eslint-disable-line new-cap

0 commit comments

Comments
 (0)
Please sign in to comment.