ts-mockito
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,8 +7,8 @@ "use strict"; | ||
MatchersToStringConverter.prototype.convert = function (matchers) { | ||
var result = ''; | ||
var result = []; | ||
for (var _i = 0, matchers_1 = matchers; _i < matchers_1.length; _i++) { | ||
var matcher = matchers_1[_i]; | ||
result += matcher.toString(); | ||
result.push(matcher.toString()); | ||
} | ||
return result; | ||
return result.join(", "); | ||
}; | ||
@@ -15,0 +15,0 @@ return MatchersToStringConverter; |
@@ -26,3 +26,8 @@ "use strict"; | ||
DeepEqualMatcher.prototype.toString = function () { | ||
return "deepEqual(" + this.expectedValue + ")"; | ||
if (this.expectedValue instanceof Array) { | ||
return "deepEqual([" + this.expectedValue + "])"; | ||
} | ||
else { | ||
return "deepEqual(" + this.expectedValue + ")"; | ||
} | ||
}; | ||
@@ -29,0 +34,0 @@ return DeepEqualMatcher; |
@@ -25,3 +25,8 @@ "use strict"; | ||
StrictEqualMatcher.prototype.toString = function () { | ||
return "strictEqual(" + this.expectedValue + ")"; | ||
if (this.expectedValue instanceof Array) { | ||
return "strictEqual([" + this.expectedValue + "])"; | ||
} | ||
else { | ||
return "strictEqual(" + this.expectedValue + ")"; | ||
} | ||
}; | ||
@@ -28,0 +33,0 @@ return StrictEqualMatcher; |
{ | ||
"name": "ts-mockito", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Mocking library for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/ts-mockito.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98150
1396