Skip to content

Commit b94ad8e

Browse files
committed
wider acceptance range for png toimage test
so it passes on my mac
1 parent 2de217e commit b94ad8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jasmine/tests/toimage_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ describe('Plotly.toImage', function() {
149149
.then(function() { return Plotly.toImage(gd, {format: 'png', imageDataOnly: true}); })
150150
.then(function(d) {
151151
expect(d.indexOf('data:image/')).toBe(-1);
152-
expect(d.length).toBeWithin(53660, 1e3, 'png image length');
152+
expect(d.length).toBeWithin(54660, 3e3, 'png image length');
153153
})
154154
.then(function() { return Plotly.toImage(gd, {format: 'jpeg', imageDataOnly: true}); })
155155
.then(function(d) {

0 commit comments

Comments
 (0)