backend-app-api: add missing test

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-05-13 11:41:23 +02:00
parent a1dc547dc4
commit 32e329e23f
@@ -48,6 +48,7 @@ describe('readHelmetOptions', () => {
key: ['value'],
'img-src': false,
scriptSrcAttr: ['custom'],
'object-src': ['asd'],
},
});
expect(readHelmetOptions(config)).toEqual({
@@ -58,7 +59,7 @@ describe('readHelmetOptions', () => {
'base-uri': ["'self'"],
'font-src': ["'self'", 'https:', 'data:'],
'frame-ancestors': ["'self'"],
'object-src': ["'none'"],
'object-src': ['asd'],
'script-src': ["'self'", "'unsafe-eval'"],
'style-src': ["'self'", 'https:', "'unsafe-inline'"],
'script-src-attr': ['custom'],