@@ -44,7 +44,7 @@ processed in one of three ways: |
44 | 44 | 1. A synchronous function that is considered failing if it throws an exception, |
45 | 45 | and is considered passing otherwise. |
46 | 46 | 2. A function that returns a `Promise` that is considered failing if the |
47 | | - `Promise` rejects, and is considered passing if the `Promise` resolves. |
| 47 | + `Promise` rejects, and is considered passing if the `Promise` fulfills. |
48 | 48 | 3. A function that receives a callback function. If the callback receives any |
49 | 49 | truthy value as its first argument, the test is considered failing. If a |
50 | 50 | falsy value is passed as the first argument to the callback, the test is |
@@ -67,7 +67,7 @@ test('synchronous failing test', (t) => { |
67 | 67 |
|
68 | 68 | test('asynchronous passing test', async (t) => { |
69 | 69 | // This test passes because the Promise returned by the async |
70 | | - // function is not rejected. |
| 70 | + // function is settled and not rejected. |
71 | 71 | assert.strictEqual(1, 1); |
72 | 72 | }); |
73 | 73 |
|
@@ -1001,7 +1001,7 @@ changes: |
1001 | 1001 | to this function is a [`TestContext`][] object. If the test uses callbacks, |
1002 | 1002 | the callback function is passed as the second argument. **Default:** A no-op |
1003 | 1003 | function. |
1004 | | -* Returns: {Promise} Resolved with `undefined` once |
| 1004 | +* Returns: {Promise} Fulfilled with `undefined` once |
1005 | 1005 | the test completes, or immediately if the test runs within [`describe()`][]. |
1006 | 1006 |
|
1007 | 1007 | The `test()` function is the value imported from the `test` module. Each |
@@ -1011,8 +1011,8 @@ The `TestContext` object passed to the `fn` argument can be used to perform |
1011 | 1011 | actions related to the current test. Examples include skipping the test, adding |
1012 | 1012 | additional diagnostic information, or creating subtests. |
1013 | 1013 |
|
1014 | | -`test()` returns a `Promise` that resolves once the test completes. |
1015 | | -if `test()` is called within a `describe()` block, it resolve immediately. |
| 1014 | +`test()` returns a `Promise` that fulfills once the test completes. |
| 1015 | +if `test()` is called within a `describe()` block, it fulfills immediately. |
1016 | 1016 | The return value can usually be discarded for top level tests. |
1017 | 1017 | However, the return value from subtests should be used to prevent the parent |
1018 | 1018 | test from finishing first and cancelling the subtest |
@@ -2508,7 +2508,7 @@ changes: |
2508 | 2508 | to this function is a [`TestContext`][] object. If the test uses callbacks, |
2509 | 2509 | the callback function is passed as the second argument. **Default:** A no-op |
2510 | 2510 | function. |
2511 | | -* Returns: {Promise} Resolved with `undefined` once the test completes. |
| 2511 | +* Returns: {Promise} Fulfilled with `undefined` once the test completes. |
2512 | 2512 |
|
2513 | 2513 | This function is used to create subtests under the current test. This function |
2514 | 2514 | behaves in the same fashion as the top level [`test()`][] function. |
|