diff --git a/server/tests/unit/nest/platform.controller.test.ts b/server/tests/unit/nest/platform.controller.test.ts index ca4070514..ff0df72c5 100644 --- a/server/tests/unit/nest/platform.controller.test.ts +++ b/server/tests/unit/nest/platform.controller.test.ts @@ -681,8 +681,14 @@ describe('applyPlatformStatic', () => { expect(header('/app/public/sw.js')).toBeUndefined(); expect(header('/app/public/icons/icon-192.png')).toBeUndefined(); expect(header('/app/public/assets/plain.js')).toBeUndefined(); + expect(header('/app/public/assets/Map-a1B2c3D.js')).toBeUndefined(); + expect(header('/app/public/assets/Map-a1B2c3D4')).toBeUndefined(); + expect(header('/app/public/assets/Map-a1B2c3D4.')).toBeUndefined(); + expect(header('/app/public/assets/')).toBeUndefined(); + expect(header('assets/Map-a1B2c3D4.css')).toBeUndefined(); // The Brotli copy of a hashed file (precompressed-static.ts) never changes either. expect(header('/app/public/assets/index-DbM4_q2x.js.br')).toBe('public, max-age=31536000, immutable'); + expect(header('/app/public/assets/plain.js.br')).toBeUndefined(); expect(header('/app/public/sw.js.br')).toBeUndefined(); }); });