Skip to content

Commit 5a16538

Browse files
committed
Fix CSP test
1 parent 6594d95 commit 5a16538

File tree

1 file changed

+5
-5
lines changed
  • programs/develop/webpack/plugin-reload/__spec__/steps/setup-reload-strategy/apply-manifest-dev-defaults

1 file changed

+5
-5
lines changed

programs/develop/webpack/plugin-reload/__spec__/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-csp.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('CSP Patching Functions', () => {
1010
const manifest: Manifest = {}
1111
const result = patchV2CSP(manifest)
1212
expect(result).toBe(
13-
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:;"
13+
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:; "
1414
)
1515
})
1616

@@ -20,7 +20,7 @@ describe('CSP Patching Functions', () => {
2020
}
2121
const result = patchV2CSP(manifest)
2222
expect(result).toBe(
23-
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:;"
23+
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:; "
2424
)
2525
})
2626

@@ -30,18 +30,18 @@ describe('CSP Patching Functions', () => {
3030
}
3131
const result = patchV2CSP(manifest)
3232
expect(result).toBe(
33-
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:;"
33+
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:; "
3434
)
3535
})
3636

3737
it('should not duplicate existing directives', () => {
3838
const manifest: Manifest = {
3939
content_security_policy:
40-
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:;"
40+
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:; "
4141
}
4242
const result = patchV2CSP(manifest)
4343
expect(result).toBe(
44-
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:;"
44+
"script-src 'self' 'unsafe-eval' blob: filesystem:; object-src 'self' blob: filesystem:; "
4545
)
4646
})
4747
})

0 commit comments

Comments
 (0)