From 7144cdb181ba8d64895e9b73e284e9249638d075 Mon Sep 17 00:00:00 2001 From: Natalia Davis Date: Tue, 26 Nov 2024 17:49:34 +0200 Subject: [PATCH] Fixed 'receiving' typos (#1797) --- packages/cli-build/src/wait.js | 2 +- packages/cli-build/test/wait.test.js | 4 ++-- packages/core/src/api.js | 2 +- scripts/loader.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/cli-build/src/wait.js b/packages/cli-build/src/wait.js index 6483fe038..20026f1b4 100644 --- a/packages/cli-build/src/wait.js +++ b/packages/cli-build/src/wait.js @@ -87,7 +87,7 @@ function logProgress({ case undefined: return log.progress('Waiting for build...'); case 'pending': - return log.progress('Recieving snapshots...'); + return log.progress('Receiving snapshots...'); case 'processing': return log.progress(`Processing ${count} snapshots - ` + ( finished === total ? 'finishing up...' : ( diff --git a/packages/cli-build/test/wait.test.js b/packages/cli-build/test/wait.test.js index b3db5161c..83431943a 100644 --- a/packages/cli-build/test/wait.test.js +++ b/packages/cli-build/test/wait.test.js @@ -60,7 +60,7 @@ describe('percy build:wait', () => { ])); }); - it('logs while recieving snapshots', async () => { + it('logs while receiving snapshots', async () => { api .reply('/builds/123', () => [200, build({ state: 'pending' @@ -74,7 +74,7 @@ describe('percy build:wait', () => { expect(logger.stderr).toEqual(['[percy] Ignoring interval since it cannot be less than 1000ms.']); expect(logger.stdout).toEqual(jasmine.arrayContaining([ - '[percy] Recieving snapshots...' + '[percy] Receiving snapshots...' ])); }); diff --git a/packages/core/src/api.js b/packages/core/src/api.js index dd9a3e3ed..357f6a0a8 100644 --- a/packages/core/src/api.js +++ b/packages/core/src/api.js @@ -154,7 +154,7 @@ export function createPercyServer(percy, port) { res.json(200, { success: true, data: data }); }) - // Recieves events from sdk's. + // Receives events from sdk's. .route('post', '/percy/events', async (req, res) => { const body = percyBuildEventHandler(req, pkg.version); await percy.client.sendBuildEvents(percy.build?.id, body); diff --git a/scripts/loader.js b/scripts/loader.js index cd45608b0..136d17bb6 100644 --- a/scripts/loader.js +++ b/scripts/loader.js @@ -11,7 +11,7 @@ const MOCK_REG = /^mock:\/\/|\?.+$/g; // global mocks can be added from tests export const MOCK_IMPORTS = global.__MOCK_IMPORTS__ = global.__MOCK_IMPORTS__ || new Proxy(Object.assign(new Map(), { __uid__: 0 }), { - get(target, prop, reciever) { + get(target, prop, receiver) { if (typeof target[prop] !== 'function') return target[prop]; return prop === 'set' ? (key, value) => {