spy4js
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -171,4 +171,9 @@ 'use strict'; | ||
* nested objects. | ||
* | ||
* Returning "any" because this return value should be usable anywhere. | ||
*/ | ||
const COMPARE = (comparator) => new SpyComparator(comparator); | ||
/** | ||
* Returning "any" because this return value should be usable anywhere. | ||
*/ | ||
const MAPPER = (from, to) => new SpyComparator((mapper) => { | ||
@@ -175,0 +180,0 @@ const result = mapper(...(Array.isArray(from) ? from : [from])); |
@@ -167,4 +167,9 @@ const NOP = () => {}; | ||
* nested objects. | ||
* | ||
* Returning "any" because this return value should be usable anywhere. | ||
*/ | ||
const COMPARE = (comparator) => new SpyComparator(comparator); | ||
/** | ||
* Returning "any" because this return value should be usable anywhere. | ||
*/ | ||
const MAPPER = (from, to) => new SpyComparator((mapper) => { | ||
@@ -171,0 +176,0 @@ const result = mapper(...(Array.isArray(from) ? from : [from])); |
{ | ||
"name": "spy4js", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Smart, compact and powerful spy test framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -32,6 +32,11 @@ /** | ||
* nested objects. | ||
* | ||
* Returning "any" because this return value should be usable anywhere. | ||
*/ | ||
const COMPARE = (comparator: Comparator): SpyComparator => new SpyComparator(comparator); | ||
const COMPARE = (comparator: Comparator): any => new SpyComparator(comparator); | ||
const MAPPER = (from: any | any[], to: any) => | ||
/** | ||
* Returning "any" because this return value should be usable anywhere. | ||
*/ | ||
const MAPPER = (from: any | any[], to: any): any => | ||
new SpyComparator((mapper: Function) => { | ||
@@ -38,0 +43,0 @@ const result = mapper(...(Array.isArray(from) ? from : [from])); |
174695
4021