1
1
/*
2
-
2
+
3
3
*
4
4
* A minimal test double library for TDD with JavaScript
5
5
*
@@ -10430,6 +10430,7 @@ function notifyAfterSatisfaction(expectedArgs, actualArgs) {
10430
10430
Object . defineProperty ( exports , "__esModule" , {
10431
10431
value : true
10432
10432
} ) ;
10433
+ exports . default = object ;
10433
10434
10434
10435
var _lodash = require ( './wrap/lodash' ) ;
10435
10436
@@ -10451,18 +10452,18 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10451
10452
10452
10453
var DEFAULT_OPTIONS = { excludeMethods : [ 'then' ] } ;
10453
10454
10454
- exports . default = function ( nameOrType , config ) {
10455
- return _lodash2 . default . tap ( fakeObject ( nameOrType , config ) , function ( obj ) {
10455
+ function object ( nameOrType , config ) {
10456
+ return _lodash2 . default . tap ( fakeObject ( nameOrType , config , arguments . length ) , function ( obj ) {
10456
10457
addToStringToDouble ( obj , nameOrType ) ;
10457
10458
} ) ;
10458
- } ;
10459
+ }
10459
10460
10460
- var fakeObject = function fakeObject ( nameOrType , config ) {
10461
+ var fakeObject = function fakeObject ( nameOrType , config , argCount ) {
10461
10462
if ( _lodash2 . default . isArray ( nameOrType ) ) {
10462
10463
return createTestDoublesForFunctionNames ( nameOrType ) ;
10463
10464
} else if ( _lodash2 . default . isObjectLike ( nameOrType ) ) {
10464
10465
return ( 0 , _imitate2 . default ) ( nameOrType ) ;
10465
- } else if ( _lodash2 . default . isString ( nameOrType ) || nameOrType === undefined ) {
10466
+ } else if ( _lodash2 . default . isString ( nameOrType ) || argCount === 0 ) {
10466
10467
return createTestDoubleViaProxy ( nameOrType , withDefaults ( config ) ) ;
10467
10468
} else if ( _lodash2 . default . isFunction ( nameOrType ) ) {
10468
10469
ensureFunctionIsNotPassed ( ) ;
@@ -11157,7 +11158,7 @@ var ignoreMessage = function ignoreMessage(config) {
11157
11158
Object . defineProperty ( exports , "__esModule" , {
11158
11159
value : true
11159
11160
} ) ;
11160
- exports . default = '3.3.1 ' ;
11161
+ exports . default = '3.3.2 ' ;
11161
11162
11162
11163
} , { } ] , 339 :[ function ( require , module , exports ) {
11163
11164
'use strict' ;
0 commit comments