Skip to content

Commit

Permalink
test: test urls fetching only if fetch is available
Browse files Browse the repository at this point in the history
  • Loading branch information
mojoaxel committed Jan 27, 2024
1 parent a9f9113 commit b3021f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ describe('issues', () => {
expect(diff).toBeFalsy()
})

test('should merge two pdfs from URL', async () => {
const testIfFetch = typeof fetch !== 'undefined' ? test : test.skip
testIfFetch('should merge two pdfs from URL', async () => {
await mergePDFsCli(path.join(TMP_DIR, 'Testfile_AB.pdf'), [
'https://github.com/nbesli/pdf-merger-js/raw/master/test/fixtures/Testfile_A.pdf',
'https://github.com/nbesli/pdf-merger-js/raw/master/test/fixtures/Testfile_B.pdf'
Expand Down

0 comments on commit b3021f1

Please sign in to comment.