Browse Source

Ensure that all `getDocument` unit-tests returns the expected data

Jonas Jenwald 10 years ago
parent
commit
5987197bd5
  1. 4
      test/unit/api_spec.js

4
test/unit/api_spec.js

@ -43,7 +43,7 @@ describe('api', function() { @@ -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() { @@ -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() {

Loading…
Cancel
Save