Skip to content

Commit

Permalink
fix tests (temporary)
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseykulikov committed Sep 19, 2019
1 parent 2d1eb80 commit 2b5dfee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
node-version: '10.x'
- name: Install, link plugin locally, and test
run: |
yarn install
yarn link
yarn link lighthouse-plugin-field-performance
yarn test
npm install
npm link
npm link lighthouse-plugin-field-performance
npm test
24 changes: 12 additions & 12 deletions test/snapshots/test/index.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Generated by [AVA](https://ava.li).
items: [
{
category: 'Fast (faster than 50 ms)',
distribution: '93 %',
distribution: '94 %',
},
{
category: 'Average (from 50 ms to 250 ms)',
Expand All @@ -80,10 +80,10 @@ Generated by [AVA](https://ava.li).
],
type: 'table',
},
displayValue: '120 ms',
displayValue: '90 ms',
id: 'field-fid',
numericValue: 122,
score: 0.83,
numericValue: 86,
score: 0.93,
scoreDisplayMode: 'numeric',
title: 'First Input Delay (URL)',
}
Expand All @@ -108,22 +108,22 @@ Generated by [AVA](https://ava.li).
items: [
{
category: 'Fast (faster than 1 s)',
distribution: '57 %',
distribution: '58 %',
},
{
category: 'Average (from 1 s to 2.5 s)',
distribution: '32 %',
},
{
category: 'Slow (longer than 2.5 s)',
distribution: '11 %',
distribution: '10 %',
},
],
type: 'table',
},
displayValue: '2.6 s',
id: 'field-fcp-origin',
numericValue: 2563,
numericValue: 2553,
score: 0.48,
scoreDisplayMode: 'numeric',
title: 'First Contentful Paint (Origin)',
Expand All @@ -149,7 +149,7 @@ Generated by [AVA](https://ava.li).
items: [
{
category: 'Fast (faster than 50 ms)',
distribution: '93 %',
distribution: '94 %',
},
{
category: 'Average (from 50 ms to 250 ms)',
Expand All @@ -162,10 +162,10 @@ Generated by [AVA](https://ava.li).
],
type: 'table',
},
displayValue: '110 ms',
displayValue: '90 ms',
id: 'field-fid-origin',
numericValue: 112,
score: 0.86,
numericValue: 86,
score: 0.93,
scoreDisplayMode: 'numeric',
title: 'First Input Delay (Origin)',
}
Expand Down Expand Up @@ -197,7 +197,7 @@ Generated by [AVA](https://ava.li).
],
description: 'These metrics show the performance of the page for real-world Chrome users over the last 30 days. Data is collected anonymously in the "field" and provided by Chrome UX Report. [Learn More](https://developers.google.com/web/tools/chrome-user-experience-report/)',
id: 'lighthouse-plugin-field-performance',
score: 0.66,
score: 0.71,
title: 'Field Performance',
}

Expand Down
Binary file modified test/snapshots/test/index.js.snap
Binary file not shown.

0 comments on commit 2b5dfee

Please sign in to comment.