Allow loaded progress of 0 in unit tests.

This commit is contained in:
Brendan Dahl 2018-08-03 10:11:35 -07:00
parent 8a4be24645
commit d762567bcf

View File

@ -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);