Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-mendoza committed Nov 21, 2024
1 parent 8573987 commit 3e3bfdf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 3e3bfdf

Please sign in to comment.