From 90d6d75af191f2f5fff03e5c13e388b86b8aa969 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 19 Jan 2023 14:30:33 -0600 Subject: Fix html extraction tests --- __tests__/lib/extractMetaHtml.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '__tests__') diff --git a/__tests__/lib/extractMetaHtml.test.ts b/__tests__/lib/extractMetaHtml.test.ts index 4ac653db0..10020f3a9 100644 --- a/__tests__/lib/extractMetaHtml.test.ts +++ b/__tests__/lib/extractMetaHtml.test.ts @@ -41,7 +41,7 @@ describe('extractHtmlMeta', () => { it.each(cases)( 'given the html tag %p, returns %p', (input, expectedResult) => { - const output = extractHtmlMeta(input) + const output = extractHtmlMeta({html: input as string, hostname: ''}) expect(output).toEqual(expectedResult) }, ) @@ -52,7 +52,7 @@ describe('extractHtmlMeta', () => { title: 'Example Domain', description: 'An example website', } - const output = extractHtmlMeta(input) + const output = extractHtmlMeta({html: input, hostname: 'example.com'}) expect(output).toEqual(expectedOutput) }) @@ -64,7 +64,7 @@ describe('extractHtmlMeta', () => { 'Stunning HD Video ( 1080p ) of Patagonian Nature with Relaxing Native American Shamanic Music. HD footage used from ', image: 'https://i.ytimg.com/vi/x6UITRjhijI/sddefault.jpg', } - const output = extractHtmlMeta(input) + const output = extractHtmlMeta({html: input, hostname: 'youtube.com'}) expect(output).toEqual(expectedOutput) }) }) -- cgit 1.4.1