From ecd1a53effae3d2a08aa8e74f886d80547b2f9fc Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Fri, 20 Dec 2024 11:49:26 +0100 Subject: [PATCH] test(index): do not expect invalid CWV values to come through anymore --- test/index.test.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.test.mjs b/test/index.test.mjs index ec7f770..454c93e 100644 --- a/test/index.test.mjs +++ b/test/index.test.mjs @@ -89,7 +89,7 @@ describe('Test index', () => { "id": "foobar", "cwv": { "a": "aaa", - "b": 123 + "INP": 123 }, "referrer": "http://a.b.c", "generation": 42, @@ -121,8 +121,8 @@ describe('Test index', () => { assert.equal(42, logged.generation); assert.equal('https://t/', logged.target); assert.equal('1.2.3.4', logged.source); - assert.equal('aaa', logged.a); - assert.equal(123, logged.b); + assert.equal(undefined, logged.a); + assert.equal(123, logged.INP); assert.equal('www.foobar.com', logged.host); assert.equal('mobile', logged.user_agent); });