test: update async-config.size-limit

This commit is contained in:
pooya parsa 2020-06-24 09:39:32 +02:00
parent 6332aaa3a2
commit c5b7bb49ab

View File

@ -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