From a2c82e63f83198f943a3aa66c3b235bcf9cd135f Mon Sep 17 00:00:00 2001 From: Bruno Mello Date: Fri, 19 Feb 2021 13:57:47 -0300 Subject: [PATCH 1/3] fix: remove article from wrapping content --- __tests__/mocks/html.ts | 28 ++++++++----------- .../html-wrapper/options-html-wrapper.ts | 8 +----- 2 files changed, 13 insertions(+), 23 deletions(-) diff --git a/__tests__/mocks/html.ts b/__tests__/mocks/html.ts index f2a5c01..5f257c2 100644 --- a/__tests__/mocks/html.ts +++ b/__tests__/mocks/html.ts @@ -265,17 +265,13 @@ const HEADER = `\ `; -const ARTICLE_CONTENT = `\ -
- ${HEADER} -

Hello World

-
+const CONTENT_WITH_HEADER = `\ +${HEADER} +

Hello World

`; -const ARTICLE_CONTENT_WITHOUT_HEADER = `\ -
-

Hello World

-
+const CONTENT_WITHOUT_HEADER = `\ +

Hello World

`; export const FULL_DOCUMENT = ` @@ -289,7 +285,7 @@ export const FULL_DOCUMENT = ` - ${ARTICLE_CONTENT} + ${CONTENT_WITH_HEADER}