diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-19 14:30:33 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-19 14:30:33 -0600 |
commit | 90d6d75af191f2f5fff03e5c13e388b86b8aa969 (patch) | |
tree | 1e5162475d41745fd4bef7437d5c148418fcb07c | |
parent | 8d7566f200ba4fc6289a3bb9c2fedb829bff127a (diff) | |
download | voidsky-90d6d75af191f2f5fff03e5c13e388b86b8aa969.tar.zst |
Fix html extraction tests
-rw-r--r-- | __tests__/lib/extractMetaHtml.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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) }) }) |