Skip to content

Commit

Permalink
Merge pull request #9956 from brendandahl/allow-zero-progress
Browse files Browse the repository at this point in the history
Allow loaded progress of 0 in unit tests.
  • Loading branch information
timvandermeij authored Aug 3, 2018
2 parents f19ee12 + d762567 commit 444976b
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 444976b

Please sign in to comment.