[Pkg-javascript-commits] [pdf.js] 67/174: Ensure that all `getDocument` unit-tests returns the expected data
David Prévot
taffit at moszumanska.debian.org
Thu Nov 19 18:45:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 5987197bd5787da89c500914de4b2e29e194666e
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Fri Oct 16 18:52:51 2015 +0200
Ensure that all `getDocument` unit-tests returns the expected data
---
test/unit/api_spec.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/unit/api_spec.js b/test/unit/api_spec.js
index 4a7a782..0c9c569 100644
--- a/test/unit/api_spec.js
+++ b/test/unit/api_spec.js
@@ -43,7 +43,7 @@ describe('api', function() {
it('creates pdf doc from URL', function() {
var promise = PDFJS.getDocument(basicApiUrl);
waitsForPromiseResolved(promise, function(data) {
- expect(true).toEqual(true);
+ expect(data instanceof PDFDocumentProxy).toEqual(true);
});
});
it('creates pdf doc from typed array', function() {
@@ -78,7 +78,7 @@ describe('api', function() {
var promise = PDFJS.getDocument(typedArrayPdf);
waitsForPromiseResolved(promise, function(data) {
- expect(true).toEqual(true);
+ expect(data instanceof PDFDocumentProxy).toEqual(true);
});
});
it('creates pdf doc from invalid PDF file', function() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list