mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: update async size test
This commit is contained in:
parent
b9f5cfe8d2
commit
23e2018a1a
@ -20,7 +20,7 @@ describe('nuxt basic resources size limit', () => {
|
|||||||
it('should stay within the size limit range in legacy mode', async () => {
|
it('should stay within the size limit range in legacy mode', async () => {
|
||||||
const legacyResourcesSize = await getResourcesSize(distDir, 'client', { gzip: true, brotli: true })
|
const legacyResourcesSize = await getResourcesSize(distDir, 'client', { gzip: true, brotli: true })
|
||||||
|
|
||||||
const LEGACY_JS_RESOURCES_KB_SIZE = 240
|
const LEGACY_JS_RESOURCES_KB_SIZE = 253
|
||||||
expect(legacyResourcesSize.uncompressed).toBeWithinSize(LEGACY_JS_RESOURCES_KB_SIZE)
|
expect(legacyResourcesSize.uncompressed).toBeWithinSize(LEGACY_JS_RESOURCES_KB_SIZE)
|
||||||
|
|
||||||
const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 83
|
const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 83
|
||||||
|
Loading…
Reference in New Issue
Block a user