Skip to content

Commit 3bbaea5

Browse files
committed
Update build-output test
1 parent 4ba3b96 commit 3bbaea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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(63.9, 1)
98+
expect(parseFloat(indexFirstLoad)).toBeCloseTo(64, 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.7)
171+
expect(parseFloat(indexFirstLoad)).toBeLessThanOrEqual(66.8)
172172
expect(parseFloat(indexFirstLoad)).toBeGreaterThanOrEqual(60)
173173
expect(indexFirstLoad.endsWith('kB')).toBe(true)
174174
})

0 commit comments

Comments
 (0)