-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Add async hook example to QUnit.module docs
* Re-arrange the examples a bit to prioritise what I believe we more commonly needed/useful examples for new code. Move down the "Hooks via module options" example, and update its name to better explain the special case of it as it is no longer the default way of creating hooks. * Rename promise hooks to "Async hook callback" and let it start with a new async-await example. * Use parent/child terms instead of the less clear mixed analogy with "parent" vs "nested". Follows-up commit bad99f9, which suggests use of hooks, but we did not have an example of that in the docs. Ref #1761.
- Loading branch information
Showing
5 changed files
with
86 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ ok 2 module manually returning a promise > has a test | |
# todo 0 | ||
# fail 1 | ||
|
||
# exit code: 1 | ||
# exit code: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ ok 2 module manually returning a thenable > has a test | |
# todo 0 | ||
# fail 1 | ||
|
||
# exit code: 1 | ||
# exit code: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ not ok 2 global failure | |
# todo 0 | ||
# fail 2 | ||
|
||
# exit code: 1 | ||
# exit code: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters