From 9911e050796c976285a5accc262af947649be618 Mon Sep 17 00:00:00 2001 From: Carl-Erik Kopseng Date: Sun, 29 Oct 2023 06:51:33 +0100 Subject: [PATCH] Note that 'properties' is empty by default --- docs/release-source/release/sandbox.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/release-source/release/sandbox.md b/docs/release-source/release/sandbox.md index 28961e1b0..f4d3c56d3 100644 --- a/docs/release-source/release/sandbox.md +++ b/docs/release-source/release/sandbox.md @@ -79,11 +79,13 @@ const sandbox = sinon.createSandbox({ ##### `injectInto` The sandbox's methods can be injected into another object for convenience. The -`injectInto` configuration option can name an object to add properties to. See the example further down the page. +`injectInto` configuration option can name an object to add properties to. Note that you explicitly need to specify all the properties you want to expose using the `properties` field. + +See the example further down the page. ##### `properties` -Which properties to inject into the facade object. Note that only naming "server" here is not sufficient to have a `server` property show up in the target object, you also have to set `useFakeServer` to `true`. +Which properties to inject into the facade object. By default empty! Note that only naming "server" here is not sufficient to have a `server` property show up in the target object, you also have to set `useFakeServer` to `true`. The list of properties that can be injected are the ones exposed by the object returned by the function `inject`: