Skip to content

Commit 8bcde5c

Browse files
authored
docs: withs "requierable" typos in descriptions and tests (#250)
1 parent 3888609 commit 8bcde5c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const DEFAULT_RELEASE_RULES = require('./lib/default-release-rules');
1414
*
1515
* @param {Object} pluginConfig The plugin configuration.
1616
* @param {String} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
17-
* @param {String} pluginConfig.config Requierable npm package with a custom conventional-changelog preset
17+
* @param {String} pluginConfig.config Requirable npm package with a custom conventional-changelog preset
1818
* @param {String|Array} pluginConfig.releaseRules A `String` to load an external module or an `Array` of rules.
1919
* @param {Object} pluginConfig.parserOpts Additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
2020
* @param {Object} context The semantic-release context.

lib/load-parser-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const conventionalChangelogAngular = require('conventional-changelog-angular');
88
*
99
* @param {Object} pluginConfig The plugin configuration.
1010
* @param {Object} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
11-
* @param {String} pluginConfig.config Requierable npm package with a custom conventional-changelog preset
11+
* @param {String} pluginConfig.config Requirable npm package with a custom conventional-changelog preset
1212
* @param {Object} pluginConfig.parserOpts Additionnal `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
1313
* @param {Object} context The semantic-release context.
1414
* @param {String} context.cwd The current working directory.

test/integration.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ test('Exclude commits if they have a matching revert commits', async t => {
111111
t.true(t.context.log.calledWith('Analysis of %s commits complete: %s release', 3, 'patch'));
112112
});
113113

114-
test('Accept a "releaseRules" option that reference a requierable module', async t => {
114+
test('Accept a "releaseRules" option that reference a requirable module', async t => {
115115
const commits = [
116116
{hash: '123', message: 'fix(scope1): First fix'},
117117
{hash: '456', message: 'feat(scope2): Second feature'},
@@ -356,7 +356,7 @@ test('Throw error if "releaseRules" is not an Array or a String', async t => {
356356
});
357357
});
358358

359-
test('Throw error if "releaseRules" option reference a requierable module that is not an Array or a String', async t => {
359+
test('Throw error if "releaseRules" option reference a requirable module that is not an Array or a String', async t => {
360360
await t.throwsAsync(analyzeCommits({releaseRules: './test/fixtures/release-rules-invalid'}, {cwd}), {
361361
message: /Error in commit-analyzer configuration: "releaseRules" must be an array of rules/,
362362
});

test/load-release-rules.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test('Accept a "releaseRules" option', t => {
1010
t.deepEqual(releaseRules, testReleaseRules);
1111
});
1212

13-
test('Accept a "releaseRules" option that reference a requierable module', t => {
13+
test('Accept a "releaseRules" option that reference a requirable module', t => {
1414
const releaseRules = loadReleaseRules({releaseRules: './test/fixtures/release-rules'}, {cwd});
1515

1616
t.deepEqual(releaseRules, testReleaseRules);
@@ -57,7 +57,7 @@ test('Throw error if "releaseRules" is not an Array or a String', t => {
5757
});
5858
});
5959

60-
test('Throw error if "releaseRules" option reference a requierable module that is not an Array or a String', t => {
60+
test('Throw error if "releaseRules" option reference a requirable module that is not an Array or a String', t => {
6161
t.throws(() => loadReleaseRules({releaseRules: './test/fixtures/release-rules-invalid'}, {cwd}), {
6262
message: /Error in commit-analyzer configuration: "releaseRules" must be an array of rules/,
6363
});

0 commit comments

Comments
 (0)