From 7af05790d655ae3fa82ee9704a72f976dedc8204 Mon Sep 17 00:00:00 2001 From: Alexsey Date: Tue, 6 Mar 2018 15:37:38 +0200 Subject: [PATCH] remove unnecessary properties quoting --- lib/sinon/call.js | 2 +- lib/sinon/match.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sinon/call.js b/lib/sinon/call.js index ba7573a43..c92b25ea2 100644 --- a/lib/sinon/call.js +++ b/lib/sinon/call.js @@ -129,7 +129,7 @@ var callProto = { throw this.args[pos]; }, - "yield": function () { + yield: function () { return this.yieldOn.apply(this, [null].concat(slice.call(arguments, 0))); }, diff --git a/lib/sinon/match.js b/lib/sinon/match.js index 7a6d55577..d16e45980 100644 --- a/lib/sinon/match.js +++ b/lib/sinon/match.js @@ -60,7 +60,7 @@ function matchObject(expectation, actual) { } var TYPE_MAP = { - "function": function (m, expectation, message) { + function: function (m, expectation, message) { m.test = expectation; m.message = message || "match(" + functionName(expectation) + ")"; },