From 39f2168b53cc20bc8c1b890ca433351763f9ce38 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Tue, 11 Jun 2024 14:14:55 -0700 Subject: [PATCH] core(tests): remove usage of computed SpeedIndex in Lantern --- core/test/lib/lantern/metrics/speed-index-test.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/test/lib/lantern/metrics/speed-index-test.js b/core/test/lib/lantern/metrics/speed-index-test.js index e48ac6b16f12..88a3f42ee89a 100644 --- a/core/test/lib/lantern/metrics/speed-index-test.js +++ b/core/test/lib/lantern/metrics/speed-index-test.js @@ -5,7 +5,6 @@ */ import * as constants from '../../../../config/constants.js'; -import {LanternSpeedIndex} from '../../../../computed/metrics/lantern-speed-index.js'; import {readJson} from '../../../test-utils.js'; import {SpeedIndex} from '../../../../lib/lantern/metrics/speed-index.js'; import {FirstContentfulPaint} from '../../../../lib/lantern/metrics/first-contentful-paint.js'; @@ -62,17 +61,17 @@ Object { }); it('should not scale coefficients at default', async () => { - const result = LanternSpeedIndex.getScaledCoefficients(defaultThrottling.rttMs); - expect(result).toEqual(LanternSpeedIndex.COEFFICIENTS); + const result = SpeedIndex.getScaledCoefficients(defaultThrottling.rttMs); + expect(result).toEqual(SpeedIndex.COEFFICIENTS); }); it('should scale coefficients back', async () => { - const result = LanternSpeedIndex.getScaledCoefficients(5); + const result = SpeedIndex.getScaledCoefficients(5); expect(result).toEqual({intercept: 0, pessimistic: 0.5, optimistic: 0.5}); }); it('should scale coefficients forward', async () => { - const result = LanternSpeedIndex.getScaledCoefficients(300); + const result = SpeedIndex.getScaledCoefficients(300); expect(result).toMatchInlineSnapshot(` Object { "intercept": 0,