Skip to content

Commit

Permalink
Allow loaded progress of 0 in unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandahl committed Aug 3, 2018
1 parent 8a4be24 commit d762567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/api_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('api', function() {
loadingTask.promise
];
Promise.all(promises).then(function (data) {
expect((data[0].loaded / data[0].total) > 0).toEqual(true);
expect((data[0].loaded / data[0].total) >= 0).toEqual(true);
expect(data[1] instanceof PDFDocumentProxy).toEqual(true);
expect(loadingTask).toEqual(data[1].loadingTask);
loadingTask.destroy().then(done);
Expand Down

0 comments on commit d762567

Please sign in to comment.