Ensure that all getDocument
unit-tests returns the expected data
This commit is contained in:
parent
34cbee9bd3
commit
5987197bd5
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user