Skip to content

Commit 516cbbe

Browse files
committed
3.3.2
1 parent a0dbff1 commit 516cbbe

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

dist/testdouble.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
2+
33
*
44
* A minimal test double library for TDD with JavaScript
55
*
@@ -10430,6 +10430,7 @@ function notifyAfterSatisfaction(expectedArgs, actualArgs) {
1043010430
Object.defineProperty(exports, "__esModule", {
1043110431
value: true
1043210432
});
10433+
exports.default = object;
1043310434

1043410435
var _lodash = require('./wrap/lodash');
1043510436

@@ -10451,18 +10452,18 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
1045110452

1045210453
var DEFAULT_OPTIONS = { excludeMethods: ['then'] };
1045310454

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) {
1045610457
addToStringToDouble(obj, nameOrType);
1045710458
});
10458-
};
10459+
}
1045910460

10460-
var fakeObject = function fakeObject(nameOrType, config) {
10461+
var fakeObject = function fakeObject(nameOrType, config, argCount) {
1046110462
if (_lodash2.default.isArray(nameOrType)) {
1046210463
return createTestDoublesForFunctionNames(nameOrType);
1046310464
} else if (_lodash2.default.isObjectLike(nameOrType)) {
1046410465
return (0, _imitate2.default)(nameOrType);
10465-
} else if (_lodash2.default.isString(nameOrType) || nameOrType === undefined) {
10466+
} else if (_lodash2.default.isString(nameOrType) || argCount === 0) {
1046610467
return createTestDoubleViaProxy(nameOrType, withDefaults(config));
1046710468
} else if (_lodash2.default.isFunction(nameOrType)) {
1046810469
ensureFunctionIsNotPassed();
@@ -11157,7 +11158,7 @@ var ignoreMessage = function ignoreMessage(config) {
1115711158
Object.defineProperty(exports, "__esModule", {
1115811159
value: true
1115911160
});
11160-
exports.default = '3.3.1';
11161+
exports.default = '3.3.2';
1116111162

1116211163
},{}],339:[function(require,module,exports){
1116311164
'use strict';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "testdouble",
3-
"version": "3.3.1",
3+
"version": "3.3.2",
44
"description": "A minimal test double library for TDD with JavaScript",
55
"homepage": "https://github.com/testdouble/testdouble.js",
66
"author": {

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default '3.3.1'
1+
export default '3.3.2'

0 commit comments

Comments
 (0)