From 142b8e3eb28bf05b47aaaa6c9cf5811b960449c1 Mon Sep 17 00:00:00 2001 From: Stephen Liu Date: Wed, 28 Aug 2024 13:27:40 -0400 Subject: [PATCH 1/2] typo in log --- packages/core/src/percy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/percy.js b/packages/core/src/percy.js index 333801783..b66e66a62 100644 --- a/packages/core/src/percy.js +++ b/packages/core/src/percy.js @@ -482,7 +482,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'); } From e433c907f57a13390f36ef1ed1112080d534515f Mon Sep 17 00:00:00 2001 From: ninadbstack <60422475+ninadbstack@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:09:19 +0530 Subject: [PATCH 2/2] Fixed test --- packages/core/test/percy.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/test/percy.test.js b/packages/core/test/percy.test.js index 4228e73c1..9a1a95acb 100644 --- a/packages/core/test/percy.test.js +++ b/packages/core/test/percy.test.js @@ -1289,7 +1289,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',