diff --git a/packages/inbound-email-handler/test/newsletter.test.ts b/packages/inbound-email-handler/test/newsletter.test.ts index cf9bff45c..b32a7f504 100644 --- a/packages/inbound-email-handler/test/newsletter.test.ts +++ b/packages/inbound-email-handler/test/newsletter.test.ts @@ -2,7 +2,7 @@ import { expect } from 'chai' import 'mocha' import parseHeaders from 'parse-headers' import rfc2047 from 'rfc2047' -import { parsedTo, plainTextToHtml } from '../src' +import { parsedTo } from '../src' import { getConfirmationCode, isGoogleConfirmationEmail, @@ -138,29 +138,3 @@ describe('decode and parse headers', () => { }) }) }) - -describe('plainTextToHtml', () => { - it('converts text to html', () => { - const text = - 'DEVOPS WEEKLY\r\n' + - 'ISSUE #665 - 24th September 2023\r\n' + - '\r\n' + - 'A few posts on CI tooling this week, along with a good introduction to developer portals/platforms and other topics.\r\n' + - '\r\n' + - 'StackHawk sponsors Devops Weekly\r\n' + - '============================\r\n' + - '\r\n' + - 'Experience automated security testing without the hassle of connecting your own app or configuring an environment! Follow the Tutorial to try out StackHawk and explore a world where security becomes an accelerator, not a blocker\r\n' + - '\r\n' + - 'https://sthwk.com/tutorial\r\n' + - '\r\n' - expect(plainTextToHtml(text)).to.eql( - `

DEVOPS WEEKLY -ISSUE #665 - 24th September 2023

-

A few posts on CI tooling this week, along with a good introduction to developer portals/platforms and other topics.

-

StackHawk sponsors Devops Weekly

-

Experience automated security testing without the hassle of connecting your own app or configuring an environment! Follow the Tutorial to try out StackHawk and explore a world where security becomes an accelerator, not a blocker

-

https://sthwk.com/tutorial

` - ) - }) -}) diff --git a/packages/inbound-email-handler/tsconfig.json b/packages/inbound-email-handler/tsconfig.json index 5220d6b3f..f450acf38 100644 --- a/packages/inbound-email-handler/tsconfig.json +++ b/packages/inbound-email-handler/tsconfig.json @@ -5,5 +5,5 @@ "rootDir": ".", "lib": ["dom"] }, - "include": ["src"] + "include": ["src", "test"] }