mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Utilize PDFNodeStream
to run more API unit-tests on Node.js/Travis
This commit is contained in:
parent
fd242ad2c2
commit
42c71cd99f
5 changed files with 42 additions and 13 deletions
|
@ -33,9 +33,7 @@ const TEST_PDFS_PATH = {
|
|||
function buildGetDocumentParams(filename, options) {
|
||||
let params = Object.create(null);
|
||||
if (isNodeJS()) {
|
||||
params.data = NodeFileReaderFactory.fetch({
|
||||
path: TEST_PDFS_PATH.node + filename,
|
||||
});
|
||||
params.url = TEST_PDFS_PATH.node + filename;
|
||||
} else {
|
||||
params.url = new URL(TEST_PDFS_PATH.dom + filename, window.location).href;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue