Skip to content

Commit 45c4d57

Browse files
Marcos Vanettamroderick
authored andcommitted
Move yieldsAsync* documentation to the first yieldsAsync*
1 parent 8c54024 commit 45c4d57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/release-source/release/stubs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,14 @@ Same as their corresponding non-Async counterparts, but with callback being defe
473473

474474
#### `stub.yieldsAsync([arg1, arg2, ...]);`
475475

476+
Same as their corresponding non-Async counterparts, but with callback being deferred (executed not immediately but after short timeout and in another "thread")
477+
476478
#### `stub.yieldsOnAsync(context, [arg1, arg2, ...]);`
477479

478480
#### `stub.yieldsToAsync(property, [arg1, arg2, ...]);`
479481

480482
#### `stub.yieldsToOnAsync(property, context, [arg1, arg2, ...])`
481483

482-
Same as their corresponding non-Async counterparts, but with callback being deferred (executed not immediately but after short timeout and in another "thread")
483-
484484
#### `sinon.addBehavior(name, fn);`
485485

486486
Add a custom behavior. The name will be available as a function on stubs, and the chaining mechanism will be set up for you (e.g. no need to return anything from your function, its return value will be ignored). The `fn` will be passed the fake instance as its first argument, and then the user's arguments.

0 commit comments

Comments
 (0)