@@ -28,24 +28,7 @@ describe('Integration', () => {
28
28
it ( 'no ext inclusion' , async ( ) => {
29
29
const doc = await initDOM ( 'no-ext-inclusion' )
30
30
31
- // The expected pattern here is wrong. Due to:
32
- //
33
- // https://github.com/webpack/loader-utils/pull/71
34
- //
35
- // ...the loader-utils module gets the interpolated name wrong when
36
- // there's no file extension and there's a period in source directory
37
- // path (which happens here due to generated temp directories). You
38
- // end up with something like:
39
- //
40
- // /static/media/.cb7eb057.OEs6g9SsPz/test-kitchensink/src/features/webpack/assets/aFileWithoutExt
41
- //
42
- // instead of:
43
- //
44
- // /static/media/aFileWithoutExt.[hash].bin
45
- //
46
- // At some point loader-utils will be fixed, and the pattern can be
47
- // fixed too.
48
- expect ( doc . getElementById ( 'feature-no-ext-inclusion' ) . href ) . to . match ( / \/ s t a t i c \/ m e d i a \/ .* a F i l e W i t h o u t E x t $ / )
31
+ expect ( doc . getElementById ( 'feature-no-ext-inclusion' ) . href ) . to . match ( / \/ s t a t i c \/ m e d i a \/ a F i l e W i t h o u t E x t \. [ a - f 0 - 9 ] { 8 } \. b i n $ / )
49
32
} )
50
33
51
34
it ( 'json inclusion' , async ( ) => {
@@ -63,7 +46,7 @@ describe('Integration', () => {
63
46
it ( 'unknown ext inclusion' , async ( ) => {
64
47
const doc = await initDOM ( 'unknown-ext-inclusion' )
65
48
66
- expect ( doc . getElementById ( 'feature-unknown-ext-inclusion' ) . href ) . to . match ( / \/ s t a t i c \/ m e d i a \/ a F i l e W i t h E x t \. [ a - f 0 - 9 ] { 8 } \. u n k n o w n $ / ) ;
49
+ expect ( doc . getElementById ( 'feature-unknown-ext-inclusion' ) . href ) . to . match ( / \/ s t a t i c \/ m e d i a \/ a F i l e W i t h E x t \. [ a - f 0 - 9 ] { 8 } \. u n k n o w n $ / )
67
50
} )
68
51
} )
69
52
} )
0 commit comments