From 9f7afd1e8837db0ce7af5f7b965bdcb4b7d1eeec Mon Sep 17 00:00:00 2001 From: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:36:51 -0300 Subject: [PATCH] fix for some complex cases --- .../__tests__/removeUnwantedElements.test.ts | 40 +++++++++++++++++++ .../utils/removeUnwantedElements.ts | 24 ++++++++--- 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/apps/api/src/scraper/WebScraper/utils/__tests__/removeUnwantedElements.test.ts b/apps/api/src/scraper/WebScraper/utils/__tests__/removeUnwantedElements.test.ts index cfa49e7..0dc24c8 100644 --- a/apps/api/src/scraper/WebScraper/utils/__tests__/removeUnwantedElements.test.ts +++ b/apps/api/src/scraper/WebScraper/utils/__tests__/removeUnwantedElements.test.ts @@ -60,4 +60,44 @@ describe('removeUnwantedElements', () => { expect(result).toContain('Main Content'); expect(result).not.toContain('