Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-mockito

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-mockito - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

lib/matcher/MatchersToStringConverter.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc