From ae351f8cde5a7c6e99fafd4696a9b31ff32a1c68 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Tue, 23 Jan 2024 12:49:50 -0800 Subject: [PATCH] s/wether/whether https://www.merriam-webster.com/dictionary/wether --- src/croner.js | 6 +++--- test/node/js/src/suites/timezone.cjs | 2 +- types/croner.d.cts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/croner.js b/src/croner.js index 9e45218..f9d72a4 100644 --- a/src/croner.js +++ b/src/croner.js @@ -233,7 +233,7 @@ Cron.prototype.getPattern = function () { }; /** - * Indicates wether or not the cron job is scheduled and running, e.g. awaiting next trigger + * Indicates whether or not the cron job is scheduled and running, e.g. awaiting next trigger * @public * * @returns {boolean} - Running or not @@ -250,7 +250,7 @@ Cron.prototype.isRunning = function () { }; /** - * Indicates wether or not the cron job is permanently stopped + * Indicates whether or not the cron job is permanently stopped * @public * * @returns {boolean} - Running or not @@ -260,7 +260,7 @@ Cron.prototype.isStopped = function () { }; /** - * Indicates wether or not the cron job is currently working + * Indicates whether or not the cron job is currently working * @public * * @returns {boolean} - Running or not diff --git a/test/node/js/src/suites/timezone.cjs b/test/node/js/src/suites/timezone.cjs index d4cf740..06d5ac4 100644 --- a/test/node/js/src/suites/timezone.cjs +++ b/test/node/js/src/suites/timezone.cjs @@ -50,7 +50,7 @@ module.exports = function (Cron, test) { let timeStockholm = Cron("* * * * * *", {timezone: "Europe/Stockholm"}).nextRun().getTime(), timeNewYork = Cron("* * * * * *", {timezone: "America/New_York"}).nextRun().getTime(); - // The time right now should be the same in utc wether in new york or stockholm. Allow a 4 second difference. + // The time right now should be the same in utc whether in new york or stockholm. Allow a 4 second difference. assert.ok(timeStockholm>=timeNewYork-4000); assert.ok(timeStockholm<=timeNewYork+4000); }); diff --git a/types/croner.d.cts b/types/croner.d.cts index 276d8db..8125aa8 100644 --- a/types/croner.d.cts +++ b/types/croner.d.cts @@ -57,21 +57,21 @@ declare class Cron { */ getPattern(): string | undefined; /** - * Indicates wether or not the cron job is scheduled and running, e.g. awaiting next trigger + * Indicates whether or not the cron job is scheduled and running, e.g. awaiting next trigger * @public * * @returns {boolean} - Running or not */ public isRunning(): boolean; /** - * Indicates wether or not the cron job is permanently stopped + * Indicates whether or not the cron job is permanently stopped * @public * * @returns {boolean} - Running or not */ public isStopped(): boolean; /** - * Indicates wether or not the cron job is currently working + * Indicates whether or not the cron job is currently working * @public * * @returns {boolean} - Running or not