@@ -428,7 +428,7 @@ describe('The config-generator function', () => {
428
428
const actualConfig = configGenerator ( config ) ;
429
429
430
430
expect ( function ( ) {
431
- findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g ) $ / , actualConfig . module . rules ) ;
431
+ findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , actualConfig . module . rules ) ;
432
432
} ) . to . not . throw ( ) ;
433
433
} ) ;
434
434
@@ -442,7 +442,7 @@ describe('The config-generator function', () => {
442
442
const actualConfig = configGenerator ( config ) ;
443
443
444
444
expect ( function ( ) {
445
- findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g ) $ / , actualConfig . module . rules ) ;
445
+ findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , actualConfig . module . rules ) ;
446
446
} ) . to . throw ( ) ;
447
447
} ) ;
448
448
} ) ;
@@ -496,7 +496,7 @@ describe('The config-generator function', () => {
496
496
const extractTextPlugin = findPlugin ( ExtractTextPlugin , actualConfig . plugins ) ;
497
497
expect ( extractTextPlugin . filename ) . to . equal ( '[name].foo.css' ) ;
498
498
499
- const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g ) $ / , actualConfig . module . rules ) ;
499
+ const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , actualConfig . module . rules ) ;
500
500
expect ( imagesRule . options . name ) . to . equal ( '[name].foo.[ext]' ) ;
501
501
502
502
const fontsRule = findRule ( / \. ( w o f f | w o f f 2 | t t f | e o t | o t f ) $ / , actualConfig . module . rules ) ;
@@ -522,7 +522,7 @@ describe('The config-generator function', () => {
522
522
const extractTextPlugin = findPlugin ( ExtractTextPlugin , actualConfig . plugins ) ;
523
523
expect ( extractTextPlugin . filename ) . to . equal ( '[name].foo.css' ) ;
524
524
525
- const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g ) $ / , actualConfig . module . rules ) ;
525
+ const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , actualConfig . module . rules ) ;
526
526
expect ( imagesRule . options . name ) . to . equal ( '[name].foo.[ext]' ) ;
527
527
528
528
const fontsRule = findRule ( / \. ( w o f f | w o f f 2 | t t f | e o t | o t f ) $ / , actualConfig . module . rules ) ;
0 commit comments