diff --git a/test/cli.test.js b/test/cli.test.js index ed4d4f4..8f4674d 100644 --- a/test/cli.test.js +++ b/test/cli.test.js @@ -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'