Skip to content

Commit

Permalink
update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 1, 2021
1 parent d83acf1 commit 5abeb17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/integration/build-output/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ describe('Build Output', () => {
expect(parseFloat(indexFirstLoad)).toBeCloseTo(63.5, 1)
expect(indexFirstLoad.endsWith('kB')).toBe(true)

expect(parseFloat(err404Size)).toBeCloseTo(3.69, 1)
expect(parseFloat(err404Size)).toBeCloseTo(3.04, 1)
expect(err404Size.endsWith('kB')).toBe(true)

expect(parseFloat(err404FirstLoad)).toBeCloseTo(68.8, 0)
expect(parseFloat(err404FirstLoad)).toBeCloseTo(66.3, 0)
expect(err404FirstLoad.endsWith('kB')).toBe(true)

expect(parseFloat(sharedByAll)).toBeCloseTo(65, 1)
expect(parseFloat(sharedByAll)).toBeCloseTo(63.3, 1)
expect(sharedByAll.endsWith('kB')).toBe(true)

if (_appSize.endsWith('kB')) {
Expand All @@ -119,10 +119,10 @@ describe('Build Output', () => {
expect(_appSize.endsWith(' B')).toBe(true)
}

expect(parseFloat(webpackSize) - 950).toBeLessThanOrEqual(0)
expect(parseFloat(webpackSize) - 952).toBeLessThanOrEqual(0)
expect(webpackSize.endsWith(' B')).toBe(true)

expect(parseFloat(mainSize) - 7.3).toBeLessThanOrEqual(0)
expect(parseFloat(mainSize) - 19.3).toBeLessThanOrEqual(0)
expect(mainSize.endsWith('kB')).toBe(true)

expect(parseFloat(frameworkSize) - 42.1).toBeLessThanOrEqual(0)
Expand Down

0 comments on commit 5abeb17

Please sign in to comment.