Skip to content

Commit

Permalink
Fix test for downloading image
Browse files Browse the repository at this point in the history
  • Loading branch information
eweitz committed Sep 14, 2020
1 parent be5f20f commit c22b08a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(config) {
'src/js/index.js',
'test/offline/**.test.js',
'test/online/**.test.js',
// 'test/online/related-genes.test.js',
// 'test/offline/tools.test.js',
{pattern: 'dist/data/**', watched: false, included: false, served: true, nocache: false}
],

Expand Down
7 changes: 4 additions & 3 deletions test/offline/tools.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ describe('Ideogram should', function() {

// Ensure the download link has a non-empty data URL
// Implementation details are in downloadPng() in `lib.js`.
assert.equal(downloadedDataUrl > 100 === true);
}, 100);
assert.equal(downloadedDataUrl > 100, true);

done();
}, 50);

done();
}

config.onLoad = callback;
Expand Down

0 comments on commit c22b08a

Please sign in to comment.