Skip to content

Commit

Permalink
test(index): do not expect invalid CWV values to come through anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Dec 20, 2024
1 parent bf2fc97 commit ecd1a53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('Test index', () => {
"id": "foobar",
"cwv": {
"a": "aaa",
"b": 123
"INP": 123
},
"referrer": "http://a.b.c",
"generation": 42,
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit ecd1a53

Please sign in to comment.