From 81fbcf600fb286ea52eeb309323aac7173466f1f Mon Sep 17 00:00:00 2001 From: Pete Droll Date: Thu, 14 Jan 2021 00:03:53 -0500 Subject: [PATCH] Don't test implementation of MailgunSend in bin test --- bin/mailgun-send.test.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bin/mailgun-send.test.js b/bin/mailgun-send.test.js index 77c0904..3922116 100644 --- a/bin/mailgun-send.test.js +++ b/bin/mailgun-send.test.js @@ -45,7 +45,7 @@ describe('version option', () => { describe('error handling', () => { it('returns error code of 1', async () => { - const result = await cli(['-t error']); + const result = await cli(['-t']); expect(result.code).toBe(1); }); @@ -54,11 +54,4 @@ describe('error handling', () => { expect(result.stdout).toMatch(/🚨 {2}Error:/); expect(result.stdout).toMatch(/unknown option/i); }); - - it('prints a friendly error message for mailgun errors', async () => { - const result = await cli(['-t notanemail']); - expect(result.stdout).toMatch(/🚨 {2}Error:/); - expect(result.stdout).toMatch(/to is not a valid email/i); - expect(result.stdout).toMatch(/text or htmlpath must be provided/i); - }); });