@@ -508,15 +508,15 @@ describe('CspHtmlWebpackPlugin', () => {
508508 } ) ;
509509
510510 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 => {
512512 const config = createWebpackConfig ( [
513513 new HtmlWebpackPlugin ( {
514514 filename : path . join ( WEBPACK_OUTPUT_DIR , 'index.html' ) ,
515515 template : path . join (
516516 __dirname ,
517517 'test-utils' ,
518518 'fixtures' ,
519- 'with-nothing .html'
519+ 'with-no-meta-tag .html'
520520 )
521521 } ) ,
522522 new CspHtmlWebpackPlugin (
@@ -534,15 +534,15 @@ describe('CspHtmlWebpackPlugin', () => {
534534 } ) ;
535535 } ) ;
536536
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 => {
538538 const config = createWebpackConfig ( [
539539 new HtmlWebpackPlugin ( {
540540 filename : path . join ( WEBPACK_OUTPUT_DIR , 'index.html' ) ,
541541 template : path . join (
542542 __dirname ,
543543 'test-utils' ,
544544 'fixtures' ,
545- 'with-nothing .html'
545+ 'with-no-meta-tag .html'
546546 ) ,
547547 cspPlugin : {
548548 enabled : false
@@ -558,15 +558,15 @@ describe('CspHtmlWebpackPlugin', () => {
558558 } ) ;
559559 } ) ;
560560
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 => {
562562 const config = createWebpackConfig ( [
563563 new HtmlWebpackPlugin ( {
564564 filename : path . join ( WEBPACK_OUTPUT_DIR , 'index.html' ) ,
565565 template : path . join (
566566 __dirname ,
567567 'test-utils' ,
568568 'fixtures' ,
569- 'with-nothing .html'
569+ 'with-no-meta-tag .html'
570570 )
571571 } ) ,
572572 new CspHtmlWebpackPlugin (
@@ -584,15 +584,15 @@ describe('CspHtmlWebpackPlugin', () => {
584584 } ) ;
585585 } ) ;
586586
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 => {
588588 const config = createWebpackConfig ( [
589589 new HtmlWebpackPlugin ( {
590590 filename : path . join ( WEBPACK_OUTPUT_DIR , 'index-enabled.html' ) ,
591591 template : path . join (
592592 __dirname ,
593593 'test-utils' ,
594594 'fixtures' ,
595- 'with-nothing .html'
595+ 'with-no-meta-tag .html'
596596 )
597597 } ) ,
598598 new HtmlWebpackPlugin ( {
@@ -601,7 +601,7 @@ describe('CspHtmlWebpackPlugin', () => {
601601 __dirname ,
602602 'test-utils' ,
603603 'fixtures' ,
604- 'with-nothing .html'
604+ 'with-no-meta-tag .html'
605605 ) ,
606606 cspPlugin : {
607607 enabled : false
0 commit comments