@@ -508,15 +508,15 @@ describe('CspHtmlWebpackPlugin', () => {
508
508
} ) ;
509
509
510
510
describe ( 'Enabled check' , ( ) => {
511
- it ( 'removes the empty Content Security Policy meta tag if enabled is the bool false' , done => {
511
+ it ( "doesn't modify the html if enabled is the bool false" , done => {
512
512
const config = createWebpackConfig ( [
513
513
new HtmlWebpackPlugin ( {
514
514
filename : path . join ( WEBPACK_OUTPUT_DIR , 'index.html' ) ,
515
515
template : path . join (
516
516
__dirname ,
517
517
'test-utils' ,
518
518
'fixtures' ,
519
- 'with-nothing .html'
519
+ 'with-no-meta-tag .html'
520
520
)
521
521
} ) ,
522
522
new CspHtmlWebpackPlugin (
@@ -534,15 +534,15 @@ describe('CspHtmlWebpackPlugin', () => {
534
534
} ) ;
535
535
} ) ;
536
536
537
- it ( 'removes the empty Content Security Policy meta tag if the `cspPlugin.disabled ` option in HtmlWebpack Plugin is true' , done => {
537
+ it ( "doesn't modify the html if the `cspPlugin.enabled ` option in HtmlWebpack Plugin is false" , done => {
538
538
const config = createWebpackConfig ( [
539
539
new HtmlWebpackPlugin ( {
540
540
filename : path . join ( WEBPACK_OUTPUT_DIR , 'index.html' ) ,
541
541
template : path . join (
542
542
__dirname ,
543
543
'test-utils' ,
544
544
'fixtures' ,
545
- 'with-nothing .html'
545
+ 'with-no-meta-tag .html'
546
546
) ,
547
547
cspPlugin : {
548
548
enabled : false
@@ -558,15 +558,15 @@ describe('CspHtmlWebpackPlugin', () => {
558
558
} ) ;
559
559
} ) ;
560
560
561
- it ( 'removes the empty Content Security Policy meta tag if enabled is a function which return false' , done => {
561
+ it ( "doesn't modify the html if enabled is a function which return false" , done => {
562
562
const config = createWebpackConfig ( [
563
563
new HtmlWebpackPlugin ( {
564
564
filename : path . join ( WEBPACK_OUTPUT_DIR , 'index.html' ) ,
565
565
template : path . join (
566
566
__dirname ,
567
567
'test-utils' ,
568
568
'fixtures' ,
569
- 'with-nothing .html'
569
+ 'with-no-meta-tag .html'
570
570
)
571
571
} ) ,
572
572
new CspHtmlWebpackPlugin (
@@ -584,15 +584,15 @@ describe('CspHtmlWebpackPlugin', () => {
584
584
} ) ;
585
585
} ) ;
586
586
587
- it ( 'only removes the Content Security Policy meta tag from the HtmlWebpackPlugin instance which has been disabled' , done => {
587
+ it ( "doesn't modify html from the HtmlWebpackPlugin instance which has been disabled" , done => {
588
588
const config = createWebpackConfig ( [
589
589
new HtmlWebpackPlugin ( {
590
590
filename : path . join ( WEBPACK_OUTPUT_DIR , 'index-enabled.html' ) ,
591
591
template : path . join (
592
592
__dirname ,
593
593
'test-utils' ,
594
594
'fixtures' ,
595
- 'with-nothing .html'
595
+ 'with-no-meta-tag .html'
596
596
)
597
597
} ) ,
598
598
new HtmlWebpackPlugin ( {
@@ -601,7 +601,7 @@ describe('CspHtmlWebpackPlugin', () => {
601
601
__dirname ,
602
602
'test-utils' ,
603
603
'fixtures' ,
604
- 'with-nothing .html'
604
+ 'with-no-meta-tag .html'
605
605
) ,
606
606
cspPlugin : {
607
607
enabled : false
0 commit comments