From 3e3bfdf42a6d64c0197bd59a5e2f1aa816811e7a Mon Sep 17 00:00:00 2001 From: Jairo Date: Thu, 21 Nov 2024 14:52:38 -0800 Subject: [PATCH] Update tests --- .../test/web-vitals-instrumentation.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/honeycomb-opentelemetry-web/test/web-vitals-instrumentation.test.ts b/packages/honeycomb-opentelemetry-web/test/web-vitals-instrumentation.test.ts index 130e2aca..2f272cbf 100644 --- a/packages/honeycomb-opentelemetry-web/test/web-vitals-instrumentation.test.ts +++ b/packages/honeycomb-opentelemetry-web/test/web-vitals-instrumentation.test.ts @@ -630,14 +630,14 @@ describe('Web Vitals Instrumentation Tests', () => { }); describe('config.vitalsToTrack', () => { - it(`should default to ['CLS', 'LCP', 'INP'] when an empty config`, () => { + it(`should default to ['CLS', 'LCP', 'INP', 'TTFB', 'FCP'] when an empty config`, () => { const instr = new WebVitalsInstrumentation(); - expect(instr.vitalsToTrack).toEqual(['CLS', 'LCP', 'INP']); + expect(instr.vitalsToTrack).toEqual(['CLS', 'LCP', 'INP', 'TTFB', 'FCP']); }); - it(`should default to ['CLS', 'LCP', 'INP'] when OTHER configuration options`, () => { + it(`should default to ['CLS', 'LCP', 'INP', 'TTFB', 'FCP'] when OTHER configuration options`, () => { const instr = new WebVitalsInstrumentation({ enabled: false }); - expect(instr.vitalsToTrack).toEqual(['CLS', 'LCP', 'INP']); + expect(instr.vitalsToTrack).toEqual(['CLS', 'LCP', 'INP', 'TTFB', 'FCP']); }); it('should be overridden vitalsToTrack is explicity passed', () => {