Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
Fix .extend({...}) minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
k4m4 committed Dec 7, 2019
1 parent f0026fd commit 089ea7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ JayMock.prototype.populate = function(template) {
* @api public
*/

JayMock.prototype.extend = function(funcName, funcBody = null) {
if (isObject(funcName) && funcBody !== null) {
JayMock.prototype.extend = function(funcName, funcBody) {
if (isObject(funcName) && !funcBody) {
this.functions = funcName
} else {
this.functions[funcName] = funcBody
Expand Down

0 comments on commit 089ea7f

Please sign in to comment.