Skip to content

Commit

Permalink
Ignore patterns for test output files
Browse files Browse the repository at this point in the history
  • Loading branch information
danburzo committed Oct 5, 2020
1 parent a28c219 commit 062e948
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,8 @@ typings/
.project
.settings

# test PDFs
*.pdf
# Test files
/*.pdf
/*.epub
/*.html
/test/percollate-output*
10 changes: 5 additions & 5 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const fs = require('fs');
const percollate = require('..');

const testUrl = 'https://de.wikipedia.org/wiki/JavaScript';
const testPdf = `${__dirname}/test.pdf`;
const testHtml = `${__dirname}/test.html`;
const testEpub = `${__dirname}/test.epub`;
const testWebtoHtml = `${__dirname}/testWebToHtml.html`;
const testHtmltoPdf = `${__dirname}/testHtmlToPdf.pdf`;
const testPdf = `${__dirname}/percollate-output.pdf`;
const testHtml = `${__dirname}/percollate-output.html`;
const testEpub = `${__dirname}/percollate-output.epub`;
const testWebtoHtml = `${__dirname}/percollate-output-webToHtml.html`;
const testHtmltoPdf = `${__dirname}/percollate-output-htmlToPdf.pdf`;

async function generateTestFiles() {
await percollate.pdf([testUrl], {
Expand Down

0 comments on commit 062e948

Please sign in to comment.