From 528fdd57d5d8270671fca8a62bed2d5a529a70fc Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Tue, 3 Dec 2024 19:42:51 +0100 Subject: [PATCH] Fix a few geo tests in the CI --- test/unit/saveArticles.test.ts | 2 +- test/unit/treatments/article.treatment.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/saveArticles.test.ts b/test/unit/saveArticles.test.ts index 085a92c9..48fc593e 100644 --- a/test/unit/saveArticles.test.ts +++ b/test/unit/saveArticles.test.ts @@ -88,7 +88,7 @@ describe('saveArticles', () => { // Successfully scrapped existent articles expect(articleDoc.querySelector('meta[name="geo.position"]')).toBeDefined() // Geo Position data is correct - expect(articleDoc.querySelector('meta[name="geo.position"]')?.getAttribute('content')).toEqual('51.5;-0.13333333') + expect(articleDoc.querySelector('meta[name="geo.position"]')?.getAttribute('content')).toEqual('51.50722222;-0.1275') // Check if header exists expect(articleDoc.querySelector('h1.article-header, h1.pcs-edit-section-title')).toBeTruthy() }) diff --git a/test/unit/treatments/article.treatment.test.ts b/test/unit/treatments/article.treatment.test.ts index caaf5f19..a212c08f 100644 --- a/test/unit/treatments/article.treatment.test.ts +++ b/test/unit/treatments/article.treatment.test.ts @@ -94,7 +94,7 @@ describe('ArticleTreatment', () => { // Successfully scrapped existent articles expect(articleDoc.querySelector('meta[name="geo.position"]')).toBeDefined() // Geo Position data is correct - expect(articleDoc.querySelector('meta[name="geo.position"]')?.getAttribute('content')).toEqual('51.5;-0.13333333') + expect(articleDoc.querySelector('meta[name="geo.position"]')?.getAttribute('content')).toEqual('51.50722222;-0.1275') }) } })