Ensure that all getDocument unit-tests returns the expected data

This commit is contained in:
Jonas Jenwald 2015-10-16 18:52:51 +02:00
parent 34cbee9bd3
commit 5987197bd5

View File

@ -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() {