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

testdouble

Package Overview
Dependencies
Maintainers
2
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testdouble - npm Package Compare versions

Comparing version 1.10.1 to 1.10.2

14

CHANGELOG.md
# Change Log
## [v1.10.2](https://github.com/testdouble/testdouble.js/tree/v1.10.2) (2016-12-31)
[Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.10.1...v1.10.2)
**Closed issues:**
- Possible pollution issue \(2 tests work individually, but fails when run together\) [\#171](https://github.com/testdouble/testdouble.js/issues/171)
- td.verify and td.when redundency warning [\#170](https://github.com/testdouble/testdouble.js/issues/170)
- Does not work with jest [\#128](https://github.com/testdouble/testdouble.js/issues/128)
**Merged pull requests:**
- Captor typings [\#174](https://github.com/testdouble/testdouble.js/pull/174) ([danielmoore](https://github.com/danielmoore))
- Align TS replace\(\) signuatrue return with implementaiton [\#173](https://github.com/testdouble/testdouble.js/pull/173) ([danielmoore](https://github.com/danielmoore))
## [v1.10.1](https://github.com/testdouble/testdouble.js/tree/v1.10.1) (2016-12-20)

@@ -4,0 +18,0 @@ [Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.10.0...v1.10.1)

27

index.d.ts

@@ -19,3 +19,3 @@ export type TestDouble = Function;

export type Stubber = {
export interface Stubber {
thenReturn(...args: any[]): TestDouble;

@@ -33,3 +33,3 @@ thenDo(f: Function): TestDouble;

export type Matchers = {
export interface Matchers {
anything(): any;

@@ -40,24 +40,31 @@ isA(type: Function): any;

not(v: any): any;
};
captor(): Captor
}
export interface Captor {
capture(): any;
value?: any;
values?: any[];
}
export const matchers: Matchers;
export function replace(path: string, f?: any): void;
export function replace(path: {}, property: string, f?: any): void;
export function replace(path: string, f?: any): any;
export function replace(path: {}, property: string, f?: any): any;
export function reset(): void;
export type VerificationConfig = {
export interface VerificationConfig {
ignoreExtraArgs?: boolean;
times?: number;
};
}
export function verify(a: any, check?: VerificationConfig): void;
type Call = {
interface Call {
context: {};
args: any[];
};
}
export type Explanation = {
export interface Explanation {
callCount: number;

@@ -64,0 +71,0 @@ calls: Call[];

// Generated by CoffeeScript 1.11.1
(function() {
module.exports = '1.10.1';
module.exports = '1.10.2';
}).call(this);
{
"name": "testdouble",
"version": "1.10.1",
"version": "1.10.2",
"description": "A minimal test double library for TDD with JavaScript",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/testdouble/testdouble.js",

Sorry, the diff of this file is too big to display

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