Skip to content

Commit 0f572f2

Browse files
committed
Refactor const(ant) variables
1 parent 9e2d4cd commit 0f572f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

middleware/policy.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ test (`Content-Security-Policy: report-to` , async t => {
4040
, response = await
4141
fetch ('http://localhost:8181/')
4242

43-
, policy = response.headers.get ('content-security-policy')
43+
, policy
44+
= (await fetch ('http://localhost:8181/'))
45+
.headers.get ('content-security-policy')
4446

4547

4648
t.ok ( policy.includes`report-to https://ffb4d440b7878d6a1d371906dbe25fcd.report-uri.com/r/d/csp/enforce` )

0 commit comments

Comments
 (0)