Allow loaded progress of 0 in unit tests.
This commit is contained in:
parent
8a4be24645
commit
d762567bcf
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user