Skip to content

Commit a4354d7

Browse files
authored
Docs: Fixed several typos
Closes #1707.
1 parent 8520cd3 commit a4354d7

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

docs/QUnit/module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Group related tests under a common label.
2525

2626
All tests inside a module will be grouped under that module. Tests can be added to a module using the [QUnit.test](./test.md) method. Modules help organize, select, and filter tests to run. See [§ Organizing your tests](#organizing-your-tests).
2727

28-
Modules can be nested inside other modules. In the output, tests are generally prefixed by the names of all parent modules. E.g. "Grantparent > Parent > Child > my test". See [§ Nested module scope](#nested-module-scope).
28+
Modules can be nested inside other modules. In the output, tests are generally prefixed by the names of all parent modules. E.g. "Grandparent > Parent > Child > my test". See [§ Nested module scope](#nested-module-scope).
2929

3030
The `QUnit.module.only()`, `QUnit.module.skip()`, and `QUnit.module.todo()` methods are aliases for `QUnit.module()` that apply the behaviour of [`QUnit.test.only()`](./test.only.md), [`QUnit.test.skip()`](./test.skip.md) or [`QUnit.test.todo()`](./test.todo.md) to all a module's tests at once.
3131

@@ -76,7 +76,7 @@ Example: [§ Declaring module options](#declaring-module-options).
7676

7777
### Nested scope
7878

79-
Modules can be nested to group tests under under a commmon label within a parent module.
79+
Modules can be nested to group tests under a common label within a parent module.
8080

8181
The module scope is given a `hooks` object which can be used to procedurally add [hooks](#hooks).
8282

docs/_data/sidebar_api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
- group: async
99
# These pages are all in at least one other group.
10-
# It exisxts for discoverability, but we don't need
10+
# It exists for discoverability, but we don't need
1111
# to highlight its pages in two places.
1212
expand: false
1313

docs/assert/notPropEqual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Compare an object's own properties using a strict inequality comparison.
1919
| `expected` | Known comparison value |
2020
| `message` (string) | Short description |
2121

22-
The `notPropEqual` assertion compares only an object's own properties, using the strict inquality operator (`!==`).
22+
The `notPropEqual` assertion compares only an object's own properties, using the strict inequality operator (`!==`).
2323

2424
The test passes if there are properties with different values, or extra properties, or missing properties.
2525

docs/assert/verifySteps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ QUnit.test('good example', async assert => {
5454
});
5555
```
5656

57-
When approaching this scenario **without the Step API** one might be tempted to place comparison checks directly inside event callbacks. It is considered an anti-pattern to make dummy assertions in callbacks that the test does not have control over. This creates loose assurances, and can easily cause false positives (a callback might not run, run out of order, or run multipe times). It also offers rather limited debugging information.
57+
When approaching this scenario **without the Step API** one might be tempted to place comparison checks directly inside event callbacks. It is considered an anti-pattern to make dummy assertions in callbacks that the test does not have control over. This creates loose assurances, and can easily cause false positives (a callback might not run, run out of order, or run multiple times). It also offers rather limited debugging information.
5858

5959
```js
6060
// WARNING: This is a BAD example

docs/callbacks/QUnit.moduleDone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Passed to the callback:
2727
| `failed` (number) | The number of failed assertions |
2828
| `passed` (number) | The number of passed assertions |
2929
| `total` (number) | The total number of assertions |
30-
| `runtime` (number) | The execution time in millseconds of this module |
30+
| `runtime` (number) | The execution time in milliseconds of this module |
3131

3232
## Examples
3333

docs/callbacks/QUnit.on.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ QUnit.on('testEnd', testEnd => {
122122

123123
The `runEnd` event indicates the end of a test run. It is emitted exactly once.
124124

125-
| `string` | `status` | Aggregate result of all tests, one of:<br>`failed`: at least one test failed or a global error ocurred;<br>`passed`: there were no failed tests, which means there were only tests with a passed, skipped, or todo status. If [`QUnit.config.failOnZeroTests`](../config/failOnZeroTests.md) is disabled, then the run may also pass if there were no tests.
125+
| `string` | `status` | Aggregate result of all tests, one of:<br>`failed`: at least one test failed or a global error occurred;<br>`passed`: there were no failed tests, which means there were only tests with a passed, skipped, or todo status. If [`QUnit.config.failOnZeroTests`](../config/failOnZeroTests.md) is disabled, then the run may also pass if there were no tests.
126126
| `Object` | `testCounts` | Aggregate counts about tests:
127127
| `number` | `testCounts.passed` | Number of passed tests.
128128
| `number` | `testCounts.failed` | Number of failed tests.

docs/callbacks/QUnit.testDone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Passed to the callback:
2828
| `failed` (number) | The number of failed assertions |
2929
| `passed` (number) | The number of passed assertions |
3030
| `total` (number) | The total number of assertions |
31-
| `runtime` (number) | The execution time in millseconds of the test, including beforeEach and afterEach calls |
31+
| `runtime` (number) | The execution time in milliseconds of the test, including beforeEach and afterEach calls |
3232
| `skipped` (boolean) | Indicates whether or not the current test was skipped |
3333
| `todo` (boolean) | Indicates whether or not the current test was a todo |
3434

docs/config/hidepassed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ In the HTML Reporter, hide results of passed tests.
2222

2323
<p class="note" markdown="1">This option can also be controlled via the [HTML Reporter](https://qunitjs.com/intro/#in-the-browser).</p>
2424

25-
By default, the HTML Reporter will list (in collapsd form) the names of all passed tests. Enable this option, to only list failing tests.
25+
By default, the HTML Reporter will list (in collapsed form) the names of all passed tests. Enable this option, to only list failing tests.

0 commit comments

Comments
 (0)