Skip to content

Commit df090e8

Browse files
committed
fix tests
1 parent 2240ffa commit df090e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/integration/build-output/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe('Build Output', () => {
123123
)
124124
expect(indexSize.endsWith('B')).toBe(true)
125125

126-
expect(parseFloat(indexFirstLoad)).toBeCloseTo(gz ? 64 : 196, 1)
126+
expect(parseFloat(indexFirstLoad)).toBeCloseTo(gz ? 66.4 : 205, 1)
127127
expect(indexFirstLoad.endsWith('kB')).toBe(true)
128128

129129
expect(parseFloat(err404Size)).toBeCloseTo(gz ? 3.17 : 8.51, 1)

test/integration/size-limit/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ describe('Production response size', () => {
8585
const delta = responseSizesBytes / 1024
8686

8787
// Expected difference: < 0.5
88-
expect(delta).toBeCloseTo(286.8, 0)
88+
expect(delta).toBeCloseTo(294.6, 0)
8989
})
9090
})

0 commit comments

Comments
 (0)