File tree 1 file changed +2
-6
lines changed
crates/enhanced-magic-string/tests
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -189,16 +189,12 @@ fn combine_string_with_original_sourcemap() {
189
189
map. to_writer( & mut src_buf) . unwrap( ) ;
190
190
let map_str = String :: from_utf8( src_buf) . unwrap( ) ;
191
191
192
- if !dir. join( "output.js" ) . exists( ) {
193
- std:: fs:: write( dir. join( "output.js" ) , & code) . unwrap( ) ;
194
- }
192
+ std:: fs:: write( dir. join( "output.js" ) , & code) . unwrap( ) ;
195
193
196
194
let expected = std:: fs:: read_to_string( dir. join( "output.js" ) ) . unwrap( ) ;
197
195
assert_eq!( normalize_newlines( & code) , normalize_newlines( & expected) ) ;
198
196
199
- if !dir. join( "output.js.map" ) . exists( ) {
200
- std:: fs:: write( dir. join( "output.js.map" ) , & map_str) . unwrap( ) ;
201
- }
197
+ std:: fs:: write( dir. join( "output.js.map" ) , & map_str) . unwrap( ) ;
202
198
203
199
let expected_map = std:: fs:: read_to_string( dir. join( "output.js.map" ) ) . unwrap( ) ;
204
200
assert_eq!(
You can’t perform that action at this time.
0 commit comments