From 45c4d576ea0dfa09742f2ea09c0821d514f0f157 Mon Sep 17 00:00:00 2001 From: Marcos Vanetta Date: Wed, 8 Nov 2017 19:54:40 -0600 Subject: [PATCH] Move yieldsAsync* documentation to the first yieldsAsync* --- docs/release-source/release/stubs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/release-source/release/stubs.md b/docs/release-source/release/stubs.md index efdaf6a78..f6d2f30b2 100644 --- a/docs/release-source/release/stubs.md +++ b/docs/release-source/release/stubs.md @@ -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.