File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ class ChromyRunner {
7474 break ;
7575 case actions . test :
7676 try {
77+ logger . log ( `camparing -> ${ this . options . testReportPath } /${ test . name } .png
78+ and ${ this . options . screenshots } /${ test . name } .png` ) ;
7779 const result = await compareImage ( this . options , test . name ) ;
7880 logger . log ( result ) ;
79- logger . log ( `campare -> ${ this . options . testReportPath } /${ test . name } .png
80- and ${ this . options . screenshots } /${ test . name } .png` ) ;
8181 } catch ( error ) {
8282 logger . error ( error ) ;
8383 return false ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ describe('ChromyRunner', () => {
9292 expect ( loggerCalls [ 0 ] ) . toEqual ( 'goto -> www.example.com' ) ;
9393 expect ( loggerCalls [ 1 ] ) . toEqual ( 'Capturing screenshot of whole DOM' ) ;
9494 expect ( loggerCalls [ 2 ] ) . toEqual ( 'screenshot saved in -> ./differencify_report/default.png' ) ;
95- expect ( loggerCalls [ 3 ] ) . toEqual ( 'Writting the diff image to disk' ) ;
95+ expect ( loggerCalls [ 4 ] ) . toEqual ( 'Writting the diff image to disk' ) ;
9696 expect ( writeFileSyncCalls ) . toEqual ( [ './differencify_report/default.png' , 'png file' ] ) ;
9797 } ) ;
9898 it ( 'Step runner: update action' , async ( ) => {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ describe('Differencify', () => {
7373 expect ( loggerCalls [ 0 ] ) . toEqual ( 'goto -> www.example.com' ) ;
7474 expect ( loggerCalls [ 1 ] ) . toEqual ( 'Capturing screenshot of whole DOM' ) ;
7575 expect ( loggerCalls [ 2 ] ) . toEqual ( 'screenshot saved in -> ./differencify_report/default.png' ) ;
76- expect ( loggerCalls [ 3 ] ) . toEqual ( 'Writting the diff image to disk' ) ;
76+ expect ( loggerCalls [ 4 ] ) . toEqual ( 'Writting the diff image to disk' ) ;
7777 expect ( writeFileSyncCalls ) . toEqual ( [ './differencify_report/default.png' , 'png file' ] ) ;
7878 } ) ;
7979} ) ;
You can’t perform that action at this time.
0 commit comments