-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Return and handle promises in tests #5340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f4ae59c
67d0973
7b73542
6bcaa90
10689cc
49c1cfd
0bd2a8e
ce5320a
db8563e
acc6707
efee80b
97574f9
a4285e5
bc1bce4
1a69837
e6555b0
cdfaadf
b70e728
c12b3e8
3bccdb1
892707f
329e915
5769cde
ec53d29
7f90732
2c0b913
2853691
1694bb4
3a313e7
33b72e1
5a127f0
97596ae
149701e
9753fb9
bbe25ef
70ec83a
cd809a2
6de8082
646cb2c
ce51c69
d0d14b8
5a3110a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ describe('zoom box element', function() { | |
mockCopy.layout.dragmode = 'zoom'; | ||
|
||
Plotly.plot(gd, mockCopy.data, mockCopy.layout) | ||
.catch(failTest) | ||
.then(done); | ||
}); | ||
|
||
|
@@ -974,7 +973,7 @@ describe('axis zoom/pan and main plot zoom', function() { | |
var yr0 = [-0.211, 3.211]; | ||
|
||
var specs = [{ | ||
desc: 'zoombox on xy', | ||
desc: '@flaky zoombox on xy', | ||
drag: ['xy', 'nsew', 30, 30], | ||
exp: [ | ||
[['xaxis', 'xaxis2', 'xaxis3'], [1.457, 2.328]], | ||
|
@@ -2338,7 +2337,7 @@ describe('Event data:', function() { | |
expect('marker.colorbar.tickvals' in pt).toBe(false, 'marker.colorbar.tickvals'); | ||
expect('marker.colorbar.ticktext' in pt).toBe(false, 'marker.colorbar.ticktext'); | ||
}) | ||
.catch(fail) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, good catch, this is a tricky one - for context, we used to call this function That said I notice there's a Definitely not something we need to do now, and it would take some experimentation to be sure this is going to fail correctly with at least as much information as |
||
.catch(failTest) | ||
.then(done); | ||
}); | ||
|
||
|
@@ -2366,7 +2365,7 @@ describe('Event data:', function() { | |
expect('marker.colorbar.tickvals' in pt).toBe(false, 'marker.colorbar.tickvals'); | ||
expect('marker.colorbar.ticktext' in pt).toBe(false, 'marker.colorbar.ticktext'); | ||
}) | ||
.catch(fail) | ||
.catch(failTest) | ||
.then(done); | ||
}); | ||
}); | ||
|
Uh oh!
There was an error while loading. Please reload this page.