Skip to content

Commit

Permalink
🧹 fix: typo in log (#1708)
Browse files Browse the repository at this point in the history
* typo in log

* Fixed test

---------

Co-authored-by: ninadbstack <[email protected]>
  • Loading branch information
c0state and ninadbstack authored Oct 15, 2024
1 parent e7d2710 commit 8a893aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/percy.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export class Percy {
const referenceDocLinks = item?.reference_doc_link;

if (options?.snapshotLevel) {
this.log.warn(`Detected erorr for Snapshot: ${options?.snapshotName}`);
this.log.warn(`Detected error for Snapshot: ${options?.snapshotName}`);
} else {
this.log.warn('Detected error for percy build');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/percy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ describe('Percy', () => {
})).toBeResolved();

expect(logger.stderr).toEqual(jasmine.arrayContaining([
'[percy] Detected erorr for Snapshot: Snapshot 1',
'[percy] Detected error for Snapshot: Snapshot 1',
'[percy] Failure: some failure reason',
'[percy] Failure Reason: undefined',
'[percy] Suggestion: some suggestion',
Expand Down

0 comments on commit 8a893aa

Please sign in to comment.