Skip to content

Commit a07d19a

Browse files
committed
update test
1 parent 4efd125 commit a07d19a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('Build Output', () => {
9595
expect(indexSize.endsWith('B')).toBe(true)
9696

9797
// should be no bigger than 63.9 kb
98-
expect(parseFloat(indexFirstLoad)).toBeCloseTo(64, 1)
98+
expect(parseFloat(indexFirstLoad)).toBeCloseTo(64.1, 1)
9999
expect(indexFirstLoad.endsWith('kB')).toBe(true)
100100

101101
expect(parseFloat(err404Size) - 3.7).toBeLessThanOrEqual(0)
@@ -168,7 +168,7 @@ describe('Build Output', () => {
168168
expect(parseFloat(indexSize)).toBeGreaterThanOrEqual(2)
169169
expect(indexSize.endsWith('kB')).toBe(true)
170170

171-
expect(parseFloat(indexFirstLoad)).toBeLessThanOrEqual(66.8)
171+
expect(parseFloat(indexFirstLoad)).toBeLessThanOrEqual(66.9)
172172
expect(parseFloat(indexFirstLoad)).toBeGreaterThanOrEqual(60)
173173
expect(indexFirstLoad.endsWith('kB')).toBe(true)
174174
})

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

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

8383
// Expected difference: < 0.5
84-
expect(delta).toBeCloseTo(284.7, 0)
84+
expect(delta).toBeCloseTo(285.3, 0)
8585
})
8686
})

0 commit comments

Comments
 (0)