File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
integration/mdc-migration Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ async function compareFiles(
64
64
const [ testContent , goldenContent ] = await Promise . allSettled ( contentPromises ) ;
65
65
const diff = {
66
66
filename,
67
- actual : getDiffValue ( goldenStats , goldenContent ) ,
68
- expected : getDiffValue ( testStats , testContent ) ,
67
+ actual : getDiffValue ( testStats , testContent ) ,
68
+ expected : getDiffValue ( goldenStats , goldenContent ) ,
69
69
} ;
70
70
if ( testStats . status === 'rejected' && goldenStats . status === 'rejected' ) {
71
71
return null ; // Neither file exists.
@@ -92,9 +92,9 @@ function showDiffs(diffs: FileDiff[]) {
92
92
console . error (
93
93
[
94
94
'' . padEnd ( 80 , '=' ) ,
95
- `----- ${ diff . filename } (actual ) ` . padEnd ( 80 , '-' ) ,
95
+ `----- ${ diff . filename } (this run ) ` . padEnd ( 80 , '-' ) ,
96
96
diff . actual ,
97
- `----- ${ diff . filename } (expected ) ` . padEnd ( 80 , '-' ) ,
97
+ `----- ${ diff . filename } (golden ) ` . padEnd ( 80 , '-' ) ,
98
98
diff . expected ,
99
99
'' ,
100
100
] . join ( '\n' ) ,
You can’t perform that action at this time.
0 commit comments