Skip to content

Commit 51d115c

Browse files
committed
Updating logging message
1 parent fa4629d commit 51d115c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/chromyRunner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

src/chromyRunner.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 () => {

src/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)