diff --git a/lib/branches/normalize.js b/lib/branches/normalize.js index 5151db20..b6650993 100644 --- a/lib/branches/normalize.js +++ b/lib/branches/normalize.js @@ -60,7 +60,7 @@ export function release({ release }) { return release; } - // The intial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0) + // The initial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0) let lastVersion = getLatestVersion(tagsToVersions(release[0].tags)) || FIRST_RELEASE; return release.map(({ name, tags, channel, ...rest }, idx) => { diff --git a/lib/get-git-auth-url.js b/lib/get-git-auth-url.js index 201a16d2..9ca2fa74 100644 --- a/lib/get-git-auth-url.js +++ b/lib/get-git-auth-url.js @@ -36,7 +36,7 @@ function formatAuthUrl(protocol, repositoryUrl, gitCredentials) { * @param {Object} context semantic-release context. * @param {String} authUrl Repository URL to verify * - * @return {String} The authUrl as is if the connection was successfull, null otherwise + * @return {String} The authUrl as is if the connection was successful, null otherwise */ async function ensureValidAuthUrl({ cwd, env, branch }, authUrl) { try { diff --git a/test/helpers/git-utils.js b/test/helpers/git-utils.js index 00dbe854..db70cdb8 100644 --- a/test/helpers/git-utils.js +++ b/test/helpers/git-utils.js @@ -98,7 +98,7 @@ export async function gitCommits(messages, execaOptions) { /** * Get the list of parsed commits since a git reference. * - * @param {String} [from] Git reference from which to seach commits. + * @param {String} [from] Git reference from which to search commits. * @param {Object} [execaOpts] Options to pass to `execa`. * * @return {Array} The list of parsed commits. @@ -240,7 +240,7 @@ export async function gitTagHead(tagName, execaOptions) { * Get the first commit sha referenced by the tag `tagName` in the remote repository. * * @param {String} repositoryUrl The repository remote URL. - * @param {String} tagName The tag name to seach for. + * @param {String} tagName The tag name to search for. * @param {Object} [execaOpts] Options to pass to `execa`. * * @return {String} The sha of the commit associated with `tagName` on the remote repository. diff --git a/test/hide-sensitive.test.js b/test/hide-sensitive.test.js index 2489f657..7b4126cc 100644 --- a/test/hide-sensitive.test.js +++ b/test/hide-sensitive.test.js @@ -11,7 +11,7 @@ test("Replace multiple sensitive environment variable values", (t) => { ); }); -test("Replace multiple occurences of sensitive environment variable values", (t) => { +test("Replace multiple occurrences of sensitive environment variable values", (t) => { const env = { secretKey: "secret" }; t.is( hideSensitive(env)(`https://user:${env.secretKey}@host.com?token=${env.secretKey}`), diff --git a/test/plugins/normalize.test.js b/test/plugins/normalize.test.js index 6e6b50a3..e0c43f8b 100644 --- a/test/plugins/normalize.test.js +++ b/test/plugins/normalize.test.js @@ -96,7 +96,7 @@ test("Normalize and load plugin from function", async (t) => { t.is(typeof plugin, "function"); }); -test("Normalize and load plugin that retuns multiple functions", async (t) => { +test("Normalize and load plugin that returns multiple functions", async (t) => { const plugin = await normalize( { cwd, options: {}, logger: t.context.logger }, "verifyConditions", diff --git a/test/plugins/utils.test.js b/test/plugins/utils.test.js index 323fd55f..57eb4243 100644 --- a/test/plugins/utils.test.js +++ b/test/plugins/utils.test.js @@ -52,7 +52,7 @@ test("validateStep: optional plugin configuration", (t) => { t.true(validateStep(type, { path: () => {}, options: "value" })); t.false(validateStep(type, { path: null })); - // Considered as an Array of 2 definitions and not as one Array definition in case of a muliple plugin type + // Considered as an Array of 2 definitions and not as one Array definition in case of a multiple plugin type t.false(validateStep(type, [() => {}, { options: "value" }])); t.false(validateStep(type, ["plugin-path.js", { options: "value" }])); @@ -134,7 +134,7 @@ test("validateStep: required plugin configuration", (t) => { t.true(validateStep(type, { path: () => {}, options: "value" })); t.false(validateStep(type, { path: null })); - // Considered as an Array of 2 definitions and not as one Array definition in the case of a muliple plugin type + // Considered as an Array of 2 definitions and not as one Array definition in the case of a multiple plugin type t.false(validateStep(type, [() => {}, { options: "value" }])); t.false(validateStep(type, ["plugin-path.js", { options: "value" }]));