Skip to content

Commit e15bbda

Browse files
docs: fix various typos in source and documentation (#5834)
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
1 parent e652121 commit e15bbda

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/content/docs/running/configuring.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ In case of conflict, the priority is:
6767
Options which can safely be repeated (e.g., `--require`) will be _concatenated_, with higher-priority configuration sources appearing earlier in the list.
6868
For example, a `.mocharc.json` containing `"require": "bar"`, coupled with execution of `mocha --require foo`, would cause Mocha to require `foo`, then `bar`, in that order.
6969

70-
This also includes `spec`. For example, a `.mocharc.json` containing `"spec": ["**/*.test.js"]` coupled with execution of `mocha bar.spec.js` would be the same as runninng `mocha bar.spec.js **/*.test.js`, and it would still run all `.test.js` files. To workaround this, you can comment out the `spec` property or use a different config file via `--config`.
70+
This also includes `spec`. For example, a `.mocharc.json` containing `"spec": ["**/*.test.js"]` coupled with execution of `mocha bar.spec.js` would be the same as running `mocha bar.spec.js **/*.test.js`, and it would still run all `.test.js` files. To workaround this, you can comment out the `spec` property or use a different config file via `--config`.
7171

7272
## Extending Configuration
7373

test/node-unit/mocha.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ describe("Mocha", function () {
223223
});
224224

225225
describe("loadFilesAsync()", function () {
226-
it("shoud pass esmDecorator to actual load function", async function () {
226+
it("should pass esmDecorator to actual load function", async function () {
227227
const esmDecorator = (x) => `${x}?foo=bar`;
228228

229229
await mocha.loadFilesAsync({ esmDecorator });

0 commit comments

Comments
 (0)