ts-mockito
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -10,3 +10,5 @@ "use strict"; | ||
MethodAction.prototype.isApplicable = function (methodName, matchers) { | ||
if (this.methodName !== methodName) { | ||
var methodNameMatch = this.methodName === methodName; | ||
var argumentsCountMatch = this.args.length == matchers.length; | ||
if (!methodNameMatch || !argumentsCountMatch) { | ||
return false; | ||
@@ -13,0 +15,0 @@ } |
{ | ||
"name": "ts-mockito", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Mocking library for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/ts-mockito.js", |
@@ -72,3 +72,3 @@ # ts-mockito [![build badge](https://travis-ci.org/NagRock/ts-mockito.svg?branch=master)](https://travis-ci.org/NagRock/ts-mockito) | ||
``` | ||
``` typescript | ||
// Creating mock | ||
@@ -75,0 +75,0 @@ let mockedFoo:Foo = mock(Foo); |
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
114796
1651