We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 649e067 commit 0f5022eCopy full SHA for 0f5022e
test/jasmine/tests/toimage_test.js
@@ -23,7 +23,7 @@ describe('Plotly.toImage', function() {
23
24
it('should return a promise', function(done) {
25
function isPromise(x) {
26
- return !!x.then || typeof x.then === 'function';
+ return !!x.then && typeof x.then === 'function';
27
}
28
29
var returnValue = Plotly.plot(gd, subplotMock.data, subplotMock.layout)
0 commit comments