Skip to content

Commit b89a6c7

Browse files
committed
3.3.3
1 parent f3e6f45 commit b89a6c7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

dist/testdouble.js

Lines changed: 6 additions & 6 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
*
@@ -9499,7 +9499,7 @@ var fakeConstructorFromNames = function fakeConstructorFromNames(funcNames) {
94999499
};
95009500

95019501
_lodash2.default.each(funcNames, function (funcName) {
9502-
fakeConstructor.prototype[funcName] = (0, _function2.default)('#' + funcName);
9502+
fakeConstructor.prototype[funcName] = (0, _function2.default)('#' + String(funcName));
95039503
});
95049504
});
95059505
};
@@ -9691,7 +9691,7 @@ exports.default = function (original, names) {
96919691
return original;
96929692
} else {
96939693
// TODO: this will become src/function/create and include parent reference instead of name joining here
9694-
return (0, _function2.default)(names.join('') || '(anonymous function)');
9694+
return (0, _function2.default)(_lodash2.default.map(names, String).join('') || '(anonymous function)');
96959695
}
96969696
} else {
96979697
return _lodash2.default.clone(original);
@@ -10474,7 +10474,7 @@ var fakeObject = function fakeObject(nameOrType, config, argCount) {
1047410474

1047510475
var createTestDoublesForFunctionNames = function createTestDoublesForFunctionNames(names) {
1047610476
return _lodash2.default.transform(names, function (acc, funcName) {
10477-
acc[funcName] = (0, _function2.default)('.' + funcName);
10477+
acc[funcName] = (0, _function2.default)('.' + String(funcName));
1047810478
});
1047910479
};
1048010480

@@ -10484,7 +10484,7 @@ var createTestDoubleViaProxy = function createTestDoubleViaProxy(name, config) {
1048410484
return new Proxy(obj, {
1048510485
get: function get(target, propKey, receiver) {
1048610486
if (!obj.hasOwnProperty(propKey) && !_lodash2.default.includes(config.excludeMethods, propKey)) {
10487-
obj[propKey] = (0, _function2.default)(nameOf(name) + '.' + propKey);
10487+
obj[propKey] = (0, _function2.default)(nameOf(name) + '.' + String(propKey));
1048810488
}
1048910489
return obj[propKey];
1049010490
}
@@ -11158,7 +11158,7 @@ var ignoreMessage = function ignoreMessage(config) {
1115811158
Object.defineProperty(exports, "__esModule", {
1115911159
value: true
1116011160
});
11161-
exports.default = '3.3.2';
11161+
exports.default = '3.3.3';
1116211162

1116311163
},{}],339:[function(require,module,exports){
1116411164
'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.2",
3+
"version": "3.3.3",
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.2'
1+
export default '3.3.3'

0 commit comments

Comments
 (0)