Utilize PDFNodeStream to run more API unit-tests on Node.js/Travis

This commit is contained in:
Jonas Jenwald 2018-01-28 14:34:45 +01:00
parent fd242ad2c2
commit 42c71cd99f
5 changed files with 42 additions and 13 deletions

View file

@ -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;
}