backend-app-api: add missing test
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user