File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
crates/swc_ecma_transforms_testing/src Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -361,12 +361,10 @@ where
361361{
362362 let _logger = testing:: init ( ) ;
363363
364- let expected = read_to_string ( output) ;
365- let _is_really_expected = expected. is_ok ( ) ;
366- let expected = expected. unwrap_or_default ( ) ;
364+ let expected = output;
367365
368366 let expected_src = Tester :: run ( |tester| {
369- let expected_module = tester. apply_transform ( noop ( ) , "expected.js" , syntax, & expected) ?;
367+ let expected_module = tester. apply_transform ( noop ( ) , "expected.js" , syntax, expected) ?;
370368
371369 let expected_src = tester. print ( & expected_module, & Default :: default ( ) ) ;
372370
@@ -411,8 +409,8 @@ where
411409
412410 Ok ( actual_src)
413411 } )
414- . 1
415- . to_string ( ) ;
412+ . 0
413+ . unwrap ( ) ;
416414
417415 assert_eq ! (
418416 expected_src, actual_src,
You can’t perform that action at this time.
0 commit comments