@@ -197,12 +197,17 @@ describe('CSP', () => {
197197 const meta = $ ( 'meta[http-equiv="Content-Security-Policy"]' ) ;
198198 // correctness for resources
199199 assert . ok (
200- meta . attr ( 'content' ) . toString ( ) . includes ( 'script-src https://global.cdn.example.com https://scripts.cdn.example.com' ) ,
200+ meta
201+ . attr ( 'content' )
202+ . toString ( )
203+ . includes ( 'script-src https://global.cdn.example.com https://scripts.cdn.example.com' ) ,
201204 ) ;
202205 assert . ok ( meta . attr ( 'content' ) . toString ( ) . includes ( "style-src 'self'" ) ) ;
203206 // correctness for hashes
204207 assert . ok ( meta . attr ( 'content' ) . toString ( ) . includes ( "default-src 'self';" ) ) ;
205- assert . ok ( meta . attr ( 'content' ) . toString ( ) . includes ( "img-src 'self' https://images.cdn.example.com;" ) ) ;
208+ assert . ok (
209+ meta . attr ( 'content' ) . toString ( ) . includes ( "img-src 'self' https://images.cdn.example.com;" ) ,
210+ ) ;
206211 } ) ;
207212
208213 it ( 'allows injecting custom styles resources and hashes based on pages' , async ( ) => {
@@ -223,11 +228,18 @@ describe('CSP', () => {
223228
224229 const meta = $ ( 'meta[http-equiv="Content-Security-Policy"]' ) ;
225230 // correctness for resources
226- assert . ok ( meta . attr ( 'content' ) . toString ( ) . includes ( 'style-src https://global.cdn.example.com https://styles.cdn.example.com' ) ) ;
231+ assert . ok (
232+ meta
233+ . attr ( 'content' )
234+ . toString ( )
235+ . includes ( 'style-src https://global.cdn.example.com https://styles.cdn.example.com' ) ,
236+ ) ;
227237 assert . ok ( meta . attr ( 'content' ) . toString ( ) . includes ( "script-src 'self'" ) ) ;
228238 // correctness for hashes
229239 assert . ok ( meta . attr ( 'content' ) . toString ( ) . includes ( "default-src 'self';" ) ) ;
230- assert . ok ( meta . attr ( 'content' ) . toString ( ) . includes ( "img-src 'self' https://images.cdn.example.com;" ) ) ;
240+ assert . ok (
241+ meta . attr ( 'content' ) . toString ( ) . includes ( "img-src 'self' https://images.cdn.example.com;" ) ,
242+ ) ;
231243 } ) ;
232244
233245 it ( 'allows add `strict-dynamic` when enabled' , async ( ) => {
0 commit comments