Skip to content

Commit 3be2704

Browse files
committed
Update tests
1 parent 4878ea9 commit 3be2704

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/size-limit/test/__snapshots__/run.test.js.snap

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ exports[`shows debug 1`] = `
8787
"bundles": [
8888
"/tmp/index.js"
8989
],
90-
"size": 123,
90+
"size": 124,
9191
"loadTime": 0.01,
9292
"runTime": 1,
9393
"totalTime": 1.01,
@@ -98,9 +98,9 @@ exports[`shows debug 1`] = `
9898
"missed": false
9999
}
100100
101-
[42m[30mPackage size is 77 B less than limit[39m[49m
101+
[42m[30mPackage size is 76 B less than limit[39m[49m
102102
Size limit: 200 B
103-
Size: [32m[1m123 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
103+
Size: [32m[1m124 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
104104
Loading time: 10 ms on slow 3G
105105
Running time: 1 s  on Snapdragon 410
106106
Total time: 1.1 s
@@ -137,7 +137,7 @@ exports[`shows error on time bigger than limit 1`] = `
137137
"
138138
Total time limit has exceeded
139139
Time limit: 1 s
140-
Size: [31m[1m123 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
140+
Size: [31m[1m124 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
141141
Loading time: 10 ms on slow 3G
142142
Running time: 1 s  on Snapdragon 410
143143
Total time: 1.1 s
@@ -150,7 +150,7 @@ exports[`shows error on time bigger than limit. in silent mode 1`] = `
150150
"
151151
Total time limit has exceeded
152152
Time limit: 1 s
153-
Size: [31m[1m123 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
153+
Size: [31m[1m124 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
154154
Loading time: 10 ms on slow 3G
155155
Running time: 1 s  on Snapdragon 410
156156
Total time: 1.1 s
@@ -371,9 +371,9 @@ exports[`supports import and ignore for esbuild and gzip 1`] = `
371371

372372
exports[`supports path without dot 1`] = `
373373
"
374-
[42m[30mPackage size is 77 B less than limit[39m[49m
374+
[42m[30mPackage size is 76 B less than limit[39m[49m
375375
Size limit: 200 B
376-
Size: [32m[1m123 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
376+
Size: [32m[1m124 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
377377
378378
"
379379
`;
@@ -580,7 +580,7 @@ exports[`works in integration test with JSON 1`] = `
580580
{
581581
"name": "index.js",
582582
"passed": true,
583-
"size": 123,
583+
"size": 124,
584584
"sizeLimit": 200,
585585
"running": 1,
586586
"loading": 0.01
@@ -591,9 +591,9 @@ exports[`works in integration test with JSON 1`] = `
591591
592592
exports[`works in integration test with size 1`] = `
593593
"
594-
[42m[30mPackage size is 77 B less than limit[39m[49m
594+
[42m[30mPackage size is 76 B less than limit[39m[49m
595595
Size limit: 200 B
596-
Size: [32m[1m123 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
596+
Size: [32m[1m124 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
597597
Loading time: 10 ms on slow 3G
598598
Running time: 1 s  on Snapdragon 410
599599
Total time: 1.1 s
@@ -604,7 +604,7 @@ exports[`works in integration test with size 1`] = `
604604
exports[`works in integration test with time 1`] = `
605605
"
606606
Time limit: 2 s
607-
Size: [32m[1m123 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
607+
Size: [32m[1m124 B[22m[39m [90mwith all dependencies, minified and brotlied[39m
608608
Loading time: 10 ms on slow 3G
609609
Running time: 1 s  on Snapdragon 410
610610
Total time: 1.1 s

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const INTEGRATION = join(ROOT, 'fixtures', 'integration', 'index.js')
1111

1212
it('has JS API', async () => {
1313
let result = await sizeLimit([webpackPlugin, filePlugin], [INTEGRATION])
14-
expect(result).toEqual([{ size: 123 }])
14+
expect(result).toEqual([{ size: 124 }])
1515
})
1616

1717
it('works with file module only', async () => {

packages/webpack/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('supports custom entry', () => {
147147
configPath: ROOT_CONFIG
148148
}
149149
await run(config)
150-
expect(config.checks[0].size).toBeCloseTo(653, -1)
150+
expect(config.checks[0].size).toBeCloseTo(648, -1)
151151
})
152152
})
153153

0 commit comments

Comments
 (0)