spy4js
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -713,3 +713,3 @@ 'use strict'; | ||
if (!(method instanceof Function)) { | ||
if (!(typeof method === 'function')) { | ||
throw new Error(`The object attribute '${methodName}' ` + `was: ${serialize(method)}\n\n` + 'You should only spy on functions!'); | ||
@@ -716,0 +716,0 @@ } |
@@ -709,3 +709,3 @@ function _defineProperty(obj, key, value) { | ||
if (!(method instanceof Function)) { | ||
if (!(typeof method === 'function')) { | ||
throw new Error(`The object attribute '${methodName}' ` + `was: ${serialize(method)}\n\n` + 'You should only spy on functions!'); | ||
@@ -712,0 +712,0 @@ } |
{ | ||
"name": "spy4js", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Smart, compact and powerful spy test framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/spy.js", |
@@ -756,3 +756,3 @@ /** | ||
const method = obj[methodName]; | ||
if (!(method instanceof Function)) { | ||
if (!(typeof method === 'function')) { | ||
throw new Error( | ||
@@ -759,0 +759,0 @@ `The object attribute '${methodName}' ` + |
109980