@@ -92,6 +92,26 @@ tests['Valid Minifyified bundle with inline sourcemap should not throw'] = funct
92
92
} , 'Valid Minifyified inline sourcemap and inline sourceContent should not throw' ) ;
93
93
} ;
94
94
95
+ tests [ 'Valid Minifyified bundle with inline sourcemap and charset should not throw' ] = function ( ) {
96
+ var mfDir = path . join ( validDir , 'Minifyified' )
97
+ , min = fs . readFileSync ( path . join ( mfDir , 'bundle.min.js' ) ) . toString ( )
98
+ . replace ( '/json;base64,' , '/json;charset=utf-8;base64,' ) ;
99
+
100
+ assert . doesNotThrow ( function ( ) {
101
+ validate ( min ) ;
102
+ } , 'Valid Minifyified inline sourcemap and inline sourceContent should not throw' ) ;
103
+ } ;
104
+
105
+ tests [ 'Valid Minifyified bundle with charset without hyphen should not throw' ] = function ( ) {
106
+ var mfDir = path . join ( validDir , 'Minifyified' )
107
+ , min = fs . readFileSync ( path . join ( mfDir , 'bundle.min.js' ) ) . toString ( )
108
+ . replace ( '/json;base64,' , '/json;charset=utf8;base64,' ) ;
109
+
110
+ assert . doesNotThrow ( function ( ) {
111
+ validate ( min ) ;
112
+ } , 'Valid Minifyified inline sourcemap and inline sourceContent should not throw' ) ;
113
+ } ;
114
+
95
115
tests [ 'Valid Babel map should not throw' ] = function ( ) {
96
116
var babelDir = path . join ( validDir , 'Babel' )
97
117
, map = fs . readFileSync ( path . join ( babelDir , 'router.js.map' ) ) . toString ( ) ;
0 commit comments