From 15c57a86b47c4df3dbf5e20c5dbbbd40a6344812 Mon Sep 17 00:00:00 2001 From: Matthew McGinn Date: Wed, 29 Jul 2020 11:55:22 -0400 Subject: [PATCH] fix up "atleast" -> "at least" Change-type: patch Signed-off-by: Matthew McGinn --- README.md | 2 +- src/api-binder.ts | 2 +- src/device-state.ts | 2 +- test/05-device-state.spec.ts | 2 +- test/11-api-binder.spec.ts | 2 +- test/lib/mocked-device-api.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index da9bf578..4ca1d58b 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ The --grep option, when specified, will trigger mocha to only run tests matching ## Troubleshooting -Make sure you are running atleast: +Make sure you are running at least: ```sh node -v # >= 12.16.2 diff --git a/src/api-binder.ts b/src/api-binder.ts index 2bd29377..cdedef99 100644 --- a/src/api-binder.ts +++ b/src/api-binder.ts @@ -110,7 +110,7 @@ export class APIBinder { if (!stateReportHealthy) { log.info( stripIndent` - Healthcheck failure - Atleast ONE of the following conditions must be true: + Healthcheck failure - At least ONE of the following conditions must be true: - No connectivityCheckEnabled ? ${!(connectivityCheckEnabled === true)} - device state is disconnected ? ${!(this.deviceState.connected === true)} - stateReportErrors less then 3 ? ${CurrentState.stateReportErrors < 3}`, diff --git a/src/device-state.ts b/src/device-state.ts index b0fb0f3e..e009ece5 100644 --- a/src/device-state.ts +++ b/src/device-state.ts @@ -284,7 +284,7 @@ export class DeviceState extends (EventEmitter as new () => DeviceStateEventEmit if (!applyTargetHealthy) { log.info( stripIndent` - Healthcheck failure - Atleast ONE of the following conditions must be true: + Healthcheck failure - At least ONE of the following conditions must be true: - No applyInProgress ? ${!(this.applyInProgress === true)} - fetchesInProgress ? ${this.applications.fetchesInProgress > 0} - cycleTimeWithinInterval ? ${cycleTimeWithinInterval}`, diff --git a/test/05-device-state.spec.ts b/test/05-device-state.spec.ts index 08650226..c8b00524 100644 --- a/test/05-device-state.spec.ts +++ b/test/05-device-state.spec.ts @@ -439,7 +439,7 @@ describe('deviceState', () => { expect(Log.info).to.be.calledOnce; expect((Log.info as SinonSpy).lastCall?.lastArg).to.equal( stripIndent` - Healthcheck failure - Atleast ONE of the following conditions must be true: + Healthcheck failure - At least ONE of the following conditions must be true: - No applyInProgress ? false - fetchesInProgress ? false - cycleTimeWithinInterval ? false`, diff --git a/test/11-api-binder.spec.ts b/test/11-api-binder.spec.ts index f7249b3b..e9b89b3a 100644 --- a/test/11-api-binder.spec.ts +++ b/test/11-api-binder.spec.ts @@ -450,7 +450,7 @@ describe('ApiBinder', () => { expect(Log.info).to.be.calledOnce; expect((Log.info as SinonSpy).lastCall?.lastArg).to.equal( stripIndent` - Healthcheck failure - Atleast ONE of the following conditions must be true: + Healthcheck failure - At least ONE of the following conditions must be true: - No connectivityCheckEnabled ? false - device state is disconnected ? false - stateReportErrors less then 3 ? false`, diff --git a/test/lib/mocked-device-api.ts b/test/lib/mocked-device-api.ts index 8f80d95e..1728d745 100644 --- a/test/lib/mocked-device-api.ts +++ b/test/lib/mocked-device-api.ts @@ -57,7 +57,7 @@ const STUBBED_VALUES = { * AND MULTIPLE TEST CASES WILL USE THEM THEN ADD THEM HERE * OTHERWISE YOU CAN ADD STUBS ON A PER TEST CASE BASIS * - * EXAMPLE: We stub ApplicationManager so there is atleast 1 running app + * EXAMPLE: We stub ApplicationManager so there is at least 1 running app * * You can see all the stubbed values convientiely in STUBBED_VALUES. *