File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -2793,6 +2793,25 @@ describe('middleware', () => {
2793
2793
request ( app ) . get ( '/public/bundle.js' ) . expect ( 200 , done ) ;
2794
2794
} ) ;
2795
2795
} ) ;
2796
+
2797
+ describe ( 'should work with "auto" value' , ( ) => {
2798
+ beforeAll ( ( done ) => {
2799
+ const compiler = getCompiler ( webpackConfig ) ;
2800
+
2801
+ instance = middleware ( compiler , { publicPath : 'auto' } ) ;
2802
+
2803
+ app = express ( ) ;
2804
+ app . use ( instance ) ;
2805
+
2806
+ listen = listenShorthand ( done ) ;
2807
+ } ) ;
2808
+
2809
+ afterAll ( close ) ;
2810
+
2811
+ it ( 'should return the "200" code for the "GET" request to the bundle file' , ( done ) => {
2812
+ request ( app ) . get ( '/bundle.js' ) . expect ( 200 , done ) ;
2813
+ } ) ;
2814
+ } ) ;
2796
2815
} ) ;
2797
2816
2798
2817
describe ( 'serverSideRender option' , ( ) => {
You can’t perform that action at this time.
0 commit comments