mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: update async-config.size-limit
This commit is contained in:
parent
6332aaa3a2
commit
c5b7bb49ab
@ -33,7 +33,7 @@ describe('nuxt basic resources size limit', () => {
|
|||||||
it('should stay within the size limit range in modern mode', async () => {
|
it('should stay within the size limit range in modern mode', async () => {
|
||||||
const modernResourcesSize = await getResourcesSize(distDir, 'modern', { gzip: true, brotli: true })
|
const modernResourcesSize = await getResourcesSize(distDir, 'modern', { gzip: true, brotli: true })
|
||||||
|
|
||||||
const MODERN_JS_RESOURCES_KB_SIZE = 170
|
const MODERN_JS_RESOURCES_KB_SIZE = 172
|
||||||
expect(modernResourcesSize.uncompressed).toBeWithinSize(MODERN_JS_RESOURCES_KB_SIZE)
|
expect(modernResourcesSize.uncompressed).toBeWithinSize(MODERN_JS_RESOURCES_KB_SIZE)
|
||||||
|
|
||||||
const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 60
|
const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 60
|
||||||
|
Loading…
Reference in New Issue
Block a user