From f01bcf29927c70a52d9ac8c1f7dc7536cd820c49 Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Thu, 8 Feb 2024 18:02:23 -0500 Subject: [PATCH] chore: up --- src/index.test.ts | 9 +++++---- src/index.tsx | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index 097b1e7a..f2881228 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -28,7 +28,8 @@ const html = ` ` -const metaTags = htmlToMetaTags(html) +const selector = 'meta[property^="fc:"], meta[property^="og:"]' +const metaTags = htmlToMetaTags(html, selector) test('htmlToMetaTags', () => { const html = ` @@ -37,7 +38,7 @@ test('htmlToMetaTags', () => { bar ` - expect(htmlToMetaTags(html).length).toEqual(2) + expect(htmlToMetaTags(html, selector).length).toEqual(2) }) test('parseFrameProperties', () => { @@ -99,7 +100,7 @@ describe('validateFrameButtons', () => { ` - const metaTags = htmlToMetaTags(html) + const metaTags = htmlToMetaTags(html, selector) const buttons = parseFrameButtons(metaTags) const result = validateFrameButtons(buttons) expect(result).toEqual({ @@ -113,7 +114,7 @@ describe('validateFrameButtons', () => { ` - const metaTags = htmlToMetaTags(html) + const metaTags = htmlToMetaTags(html, selector) const buttons = parseFrameButtons(metaTags) const result = validateFrameButtons(buttons) expect(result).toEqual({ diff --git a/src/index.tsx b/src/index.tsx index 3f8d1c71..80109284 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -601,7 +601,6 @@ function htmlToState(html: string) { properties[property] = content } - console.log(properties) return { context: deserializeJson(properties['farc:context']), previousContext: deserializeJson(