diff --git a/core/audits/redirects.js b/core/audits/redirects.js index fb911b85f805..7057954658f0 100644 --- a/core/audits/redirects.js +++ b/core/audits/redirects.js @@ -157,7 +157,7 @@ class Redirects extends Audit { metricSavings: { LCP: totalWastedMs, FCP: totalWastedMs, - } + }, }; } } diff --git a/core/test/audits/redirects-test.js b/core/test/audits/redirects-test.js index 5b66da8bfb96..374b425b92fd 100644 --- a/core/test/audits/redirects-test.js +++ b/core/test/audits/redirects-test.js @@ -164,7 +164,7 @@ describe('Performance: Redirects audit', () => { expect(output.details.items).toHaveLength(3); expect(Math.round(output.score * 100) / 100).toMatchInlineSnapshot(`0.29`); expect(output.numericValue).toMatchInlineSnapshot(`2000`); - expect(output.metricSavings).toEqual({LCP:2000, FCP:2000 }); + expect(output.metricSavings).toEqual({LCP: 2000, FCP: 2000}); }); it('uses lantern timings when throttlingMethod is simulate', async () => { @@ -193,7 +193,7 @@ describe('Performance: Redirects audit', () => { ] `); expect(output.numericValue).toMatchInlineSnapshot(`1890`); - expect(output.metricSavings).toEqual({LCP:1890, FCP:1890 }); + expect(output.metricSavings).toEqual({LCP: 1890, FCP: 1890}); }); it('fails when 3 redirects detected', () => { @@ -203,7 +203,7 @@ describe('Performance: Redirects audit', () => { expect(output.details.items).toHaveLength(4); expect(Math.round(output.score * 100) / 100).toMatchInlineSnapshot(`0.2`); expect(output.numericValue).toMatchInlineSnapshot(`3000`); - expect(output.metricSavings).toEqual({LCP:3000, FCP:3000 }); + expect(output.metricSavings).toEqual({LCP: 3000, FCP: 3000}); }); }); @@ -214,7 +214,7 @@ describe('Performance: Redirects audit', () => { expect(output.details.items).toHaveLength(3); expect(Math.round(output.score * 100) / 100).toMatchInlineSnapshot(`0.29`); expect(output.numericValue).toMatchInlineSnapshot(`2000`); - expect(output.metricSavings).toEqual({LCP:2000, FCP:2000 }); + expect(output.metricSavings).toEqual({LCP: 2000, FCP: 2000}); }); }); @@ -227,8 +227,7 @@ describe('Performance: Redirects audit', () => { expect(output.details.items).toHaveLength(2); expect(output.score).toEqual(1); expect(output.numericValue).toMatchInlineSnapshot(`1000`); - expect(output.metricSavings).toEqual({LCP:1000, FCP:1000 }); - + expect(output.metricSavings).toEqual({LCP: 1000, FCP: 1000}); }); }); @@ -239,7 +238,7 @@ describe('Performance: Redirects audit', () => { assert.equal(output.score, 1); assert.equal(output.details.items.length, 0); assert.equal(output.numericValue, 0); - assert.deepStrictEqual(output.metricSavings, {LCP: 0, FCP:0}); + assert.deepStrictEqual(output.metricSavings, {LCP: 0, FCP: 0}); }); }); @@ -272,7 +271,7 @@ describe('Performance: Redirects audit', () => { metricSavings: { LCP: 3000, FCP: 3000, - } + }, }); });