Skip to content

Commit

Permalink
Move yieldsAsync* documentation to the first yieldsAsync*
Browse files Browse the repository at this point in the history
  • Loading branch information
malev authored and mroderick committed Nov 11, 2017
1 parent 8c54024 commit 45c4d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/release-source/release/stubs.md
Expand Up @@ -473,14 +473,14 @@ Same as their corresponding non-Async counterparts, but with callback being defe

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

Same as their corresponding non-Async counterparts, but with callback being deferred (executed not immediately but after short timeout and in another "thread")

#### `stub.yieldsOnAsync(context, [arg1, arg2, ...]);`

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

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

Same as their corresponding non-Async counterparts, but with callback being deferred (executed not immediately but after short timeout and in another "thread")

#### `sinon.addBehavior(name, fn);`

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.
Expand Down

0 comments on commit 45c4d57

Please sign in to comment.