Skip to content

Commit 0f5022e

Browse files
fix promise check in toimage_test
1 parent 649e067 commit 0f5022e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jasmine/tests/toimage_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Plotly.toImage', function() {
2323

2424
it('should return a promise', function(done) {
2525
function isPromise(x) {
26-
return !!x.then || typeof x.then === 'function';
26+
return !!x.then && typeof x.then === 'function';
2727
}
2828

2929
var returnValue = Plotly.plot(gd, subplotMock.data, subplotMock.layout)

0 commit comments

Comments
 (0)