Skip to content

Commit

Permalink
fix test global
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Sep 19, 2024
1 parent a5b2a68 commit 7c6ffe6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ describe('Render blocking resources audit', () => {
assert.deepStrictEqual(result.metricSavings, {FCP: 300, LCP: 0});
});

afterEach(() => {
global.isLightrider = false;
});

it('considers X-TotalFetchedSize in its reported transfer size', async () => {
global.isLightrider = true;
after(() => {
global.isLightrider = false;
});

const artifacts = {
URL: getURLArtifactFromDevtoolsLog(lrDevtoolsLog),
Expand Down

0 comments on commit 7c6ffe6

Please sign in to comment.