Skip to content

Commit

Permalink
More gte to gt
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Apr 5, 2024
1 parent ed8d4f4 commit 849909d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/e2e/onCLS-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('onCLS()', async function () {

const [cls1] = await getBeacons();

assert(cls1.value >= 0);
assert(cls1.value > 0);
assert(cls1.id.match(/^v4-\d+-\d+$/));
assert.strictEqual(cls1.name, 'CLS');
assert.strictEqual(cls1.value, cls1.delta);
Expand Down Expand Up @@ -271,7 +271,7 @@ describe('onCLS()', async function () {
assert.strictEqual(cls1.entries.length, 0);
assert.match(cls1.navigationType, /navigate|reload/);

assert(cls2.value >= 0);
assert(cls2.value > 0);
assert.strictEqual(cls2.name, 'CLS');
assert.strictEqual(cls2.id, cls1.id);
assert.strictEqual(cls2.value, cls1.delta + cls2.delta);
Expand Down Expand Up @@ -315,7 +315,7 @@ describe('onCLS()', async function () {
assert.strictEqual(cls1.entries.length, 0);
assert.match(cls1.navigationType, /navigate|reload/);

assert(cls2.value >= 0);
assert(cls2.value > 0);
assert.strictEqual(cls2.name, 'CLS');
assert.strictEqual(cls2.id, cls1.id);
assert.strictEqual(cls2.value, cls1.delta + cls2.delta);
Expand Down Expand Up @@ -355,8 +355,8 @@ describe('onCLS()', async function () {

const [cls1] = await getBeacons();

assert(cls1.value >= 0);
assert(cls1.delta >= 0);
assert(cls1.value > 0);
assert(cls1.delta > 0);
assert(cls1.id.match(/^v4-\d+-\d+$/));
assert.strictEqual(cls1.name, 'CLS');
assert.strictEqual(cls1.value, cls1.delta);
Expand Down Expand Up @@ -402,7 +402,7 @@ describe('onCLS()', async function () {
assert.strictEqual(cls1.entries.length, 0);
assert.match(cls1.navigationType, /navigate|reload/);

assert(cls2.value >= 0);
assert(cls2.value > 0);
assert.strictEqual(cls2.name, 'CLS');
assert.strictEqual(cls2.id, cls1.id);
assert.strictEqual(cls2.value, cls1.delta + cls2.delta);
Expand Down Expand Up @@ -453,7 +453,7 @@ describe('onCLS()', async function () {

const [cls1] = await getBeacons();

assert(cls1.value >= 0);
assert(cls1.value > 0);
assert(cls1.id.match(/^v4-\d+-\d+$/));
assert.strictEqual(cls1.delta, cls1.value);
assert.strictEqual(cls1.name, 'CLS');
Expand All @@ -470,7 +470,7 @@ describe('onCLS()', async function () {

const [cls2] = await getBeacons();

assert(cls2.value >= 0);
assert(cls2.value > 0);
assert(cls2.id.match(/^v4-\d+-\d+$/));
assert(cls2.id !== cls1.id);

Expand Down Expand Up @@ -515,7 +515,7 @@ describe('onCLS()', async function () {
assert.strictEqual(cls1.entries.length, 0);
assert.match(cls1.navigationType, /navigate|reload/);

assert(cls2.value >= 0);
assert(cls2.value > 0);
assert.strictEqual(cls2.name, 'CLS');
assert.strictEqual(cls2.id, cls1.id);
assert.strictEqual(cls2.value, cls1.delta + cls2.delta);
Expand Down

0 comments on commit 849909d

Please sign in to comment.