hedgedoc/test
David Mehren 6760739761
Fix CSP tests by filtering out empty array fields
In 25f5fd2a the `media-src`, `child-src` and `connect-src`
settings were removed, as they are filled with the `default-src` automatically.

This caused a bug in the test code, as it now tried to access a
nonexistent field  of `unextendedCSP`.

This commit adds a filter that removes the empty array field
before converting to a string.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-15 00:22:31 +02:00
..
csp.js Fix CSP tests by filtering out empty array fields 2021-08-15 00:22:31 +02:00
letter-avatars.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
user.js polyfilling scrypt for node 8.5+ 2019-05-13 19:37:21 +02:00