From d4aed0b3320e4ae72f6f2142c067db905aedb1d2 Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Wed, 2 Jun 2021 11:07:04 +0200 Subject: [PATCH] Tidy test lib --- lemonldap-ng-portal/t/test-lib.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/t/test-lib.pm b/lemonldap-ng-portal/t/test-lib.pm index b06bf69a8..ab90be1ef 100644 --- a/lemonldap-ng-portal/t/test-lib.pm +++ b/lemonldap-ng-portal/t/test-lib.pm @@ -487,9 +487,9 @@ sub expectCspChildOK { my ( $res, $host ) = @_; return 1 unless ($host); my $csp = getHeader( $res, 'Content-Security-Policy' ); - ok($csp, "Content-Security-Policy header found"); + ok( $csp, "Content-Security-Policy header found" ); count(1); - like($csp, qr/child-src[^;]*\Q$host\E/, "Found $host in CSP child-src"); + like( $csp, qr/child-src[^;]*\Q$host\E/, "Found $host in CSP child-src" ); count(1); }