From c6d01d879f84995aa6632828c0635aa1acc038cc Mon Sep 17 00:00:00 2001 From: StefanSchoof Date: Tue, 30 May 2017 18:42:14 +0200 Subject: [PATCH] Add missing function name (#1440) --- lib/sinon/sandbox-stub.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sinon/sandbox-stub.js b/lib/sinon/sandbox-stub.js index a120112f5..080de429d 100644 --- a/lib/sinon/sandbox-stub.js +++ b/lib/sinon/sandbox-stub.js @@ -13,8 +13,8 @@ function sandboxStub(object, property/*, value*/) { deprecated.printWarning( "sandbox.stub(obj, 'meth', val) is deprecated and will be removed from " + "the public API in a future version of sinon." + - "\n Use sandbox(obj, 'meth').callsFake(fn) instead in order to stub a function." + - "\n Use sandbox(obj, 'meth').value(fn) instead in order to stub a non-function value." + "\n Use sandbox.stub(obj, 'meth').callsFake(fn) instead in order to stub a function." + + "\n Use sandbox.stub(obj, 'meth').value(fn) instead in order to stub a non-function value." ); throwOnFalsyObject.apply(null, arguments);