@@ -119,7 +119,8 @@ describe('InlineSourceWebpackPlugin', () => {
119119 } ) ;
120120 } ) ;
121121
122- test ( 'should ignore while "noAssetMatch" option is set to "0"' , done => {
122+
123+ test ( 'should ignore while "noAssetMatch" option is set to "0" or "none"' , done => {
123124 const webpackConfig = Object . assign ( { } , baseWebpackConfig , {
124125 plugins : [
125126 new HtmlWebpackPlugin ( {
@@ -131,7 +132,7 @@ describe('InlineSourceWebpackPlugin', () => {
131132 new InlineSourceWebpackPlugin ( {
132133 compress : true ,
133134 rootpath : './test/fixtures' ,
134- noAssetMatch : 0
135+ noAssetMatch : 'none'
135136 } )
136137 ]
137138 } ) ;
@@ -143,7 +144,7 @@ describe('InlineSourceWebpackPlugin', () => {
143144 } ) ;
144145 } ) ;
145146
146- test ( 'should throw warnings and replace target while "noAssetMatch" option is set to "1"' , done => {
147+ test ( 'should throw warnings and replace target while "noAssetMatch" option is set to "1" or "warn" ' , done => {
147148 const webpackConfig = Object . assign ( { } , baseWebpackConfig , {
148149 plugins : [
149150 new HtmlWebpackPlugin ( {
@@ -155,7 +156,7 @@ describe('InlineSourceWebpackPlugin', () => {
155156 new InlineSourceWebpackPlugin ( {
156157 compress : true ,
157158 rootpath : './test/fixtures' ,
158- noAssetMatch : 1 ,
159+ noAssetMatch : 'warn' ,
159160 noAssetMatchReplace : '<!--inline-source-webpack-plugin-->'
160161 } )
161162 ]
@@ -169,7 +170,7 @@ describe('InlineSourceWebpackPlugin', () => {
169170 } ) ;
170171 } ) ;
171172
172- test ( 'should throw error and replace target while "noAssetMatch" option is set to "2"' , done => {
173+ test ( 'should throw error and replace target while "noAssetMatch" option is set to "2" or "error" ' , done => {
173174 const webpackConfig = Object . assign ( { } , baseWebpackConfig , {
174175 plugins : [
175176 new HtmlWebpackPlugin ( {
@@ -181,7 +182,7 @@ describe('InlineSourceWebpackPlugin', () => {
181182 new InlineSourceWebpackPlugin ( {
182183 compress : true ,
183184 rootpath : './test/fixtures' ,
184- noAssetMatch : 2 ,
185+ noAssetMatch : 'error' ,
185186 noAssetMatchReplace : '<!--inline-source-webpack-plugin-->'
186187 } )
187188 ]
0 commit comments