From d762567bcf765f2931322d90c99360cdb3c86751 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 3 Aug 2018 10:11:35 -0700 Subject: [PATCH] Allow loaded progress of 0 in unit tests. --- test/unit/api_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/api_spec.js b/test/unit/api_spec.js index 1a643e0ae5188..4f2b76a30a580 100644 --- a/test/unit/api_spec.js +++ b/test/unit/api_spec.js @@ -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);