test: update size limit tests

This commit is contained in:
Pooya Parsa 2022-09-03 15:17:44 +02:00
parent 01fa8d6dfe
commit 4f11d3c1a5

View File

@ -23,7 +23,7 @@ describe('nuxt basic resources size limit', () => {
const LEGACY_JS_RESOURCES_KB_SIZE = 253
expect(legacyResourcesSize.uncompressed).toBeWithinSize(LEGACY_JS_RESOURCES_KB_SIZE)
const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 83
const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 88
expect(legacyResourcesSize.gzip).toBeWithinSize(LEGACY_JS_RESOURCES_GZIP_KB_SIZE)
const LEGACY_JS_RESOURCES_BROTLI_KB_SIZE = 72
@ -36,10 +36,10 @@ describe('nuxt basic resources size limit', () => {
const MODERN_JS_RESOURCES_KB_SIZE = 210
expect(modernResourcesSize.uncompressed).toBeWithinSize(MODERN_JS_RESOURCES_KB_SIZE)
const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 73
const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 77
expect(modernResourcesSize.gzip).toBeWithinSize(MODERN_JS_RESOURCES_GZIP_KB_SIZE)
const MODERN_JS_RESOURCES_BROTLI_KB_SIZE = 64
const MODERN_JS_RESOURCES_BROTLI_KB_SIZE = 68
expect(modernResourcesSize.brotli).toBeWithinSize(MODERN_JS_RESOURCES_BROTLI_KB_SIZE)
})
})