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.0 to 1.10.1

index.d.ts

54

CHANGELOG.md
# Change Log
## [v1.10.1](https://github.com/testdouble/testdouble.js/tree/v1.10.1) (2016-12-20)
[Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.10.0...v1.10.1)
**Implemented enhancements:**
- Make the `constructor` property of td.replaced\(\) instantiable types useful [\#121](https://github.com/testdouble/testdouble.js/issues/121)
- Improve output for `times` verification failures [\#85](https://github.com/testdouble/testdouble.js/issues/85)
- Allow argument matchers to enhance failure messages [\#59](https://github.com/testdouble/testdouble.js/issues/59)
- td.constructor\(\) feature for creating fake constructors [\#54](https://github.com/testdouble/testdouble.js/issues/54)
**Closed issues:**
- typings for typescript [\#167](https://github.com/testdouble/testdouble.js/issues/167)
- A little typo in Getting Started documentation [\#165](https://github.com/testdouble/testdouble.js/issues/165)
- Unable to stub static method on ES6 classes [\#164](https://github.com/testdouble/testdouble.js/issues/164)
- transcribe unusual spending kata from ES5 to ES6/babel [\#163](https://github.com/testdouble/testdouble.js/issues/163)
- Classes with overridden methods not doubling properly since 1.10.0 [\#159](https://github.com/testdouble/testdouble.js/issues/159)
- `td.replace\(\)` doesn't work with `import`? [\#147](https://github.com/testdouble/testdouble.js/issues/147)
- Support multiple capture invocations [\#139](https://github.com/testdouble/testdouble.js/issues/139)
- Constructor replacements will fail instanceof checks [\#107](https://github.com/testdouble/testdouble.js/issues/107)
**Merged pull requests:**
- Typings for typescript [\#169](https://github.com/testdouble/testdouble.js/pull/169) ([mkusher](https://github.com/mkusher))
## [v1.10.0](https://github.com/testdouble/testdouble.js/tree/v1.10.0) (2016-12-11)
[Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.9.1...v1.10.0)
**Implemented enhancements:**
- td.replace doesn't properly detect ES6 classes [\#119](https://github.com/testdouble/testdouble.js/issues/119)
**Closed issues:**
- Mocking a Class [\#157](https://github.com/testdouble/testdouble.js/issues/157)
- Matcher for a specific position [\#156](https://github.com/testdouble/testdouble.js/issues/156)
**Merged pull requests:**
- Sort out replacement of especially 6+ Classes [\#158](https://github.com/testdouble/testdouble.js/pull/158) ([searls](https://github.com/searls))
## [v1.9.1](https://github.com/testdouble/testdouble.js/tree/v1.9.1) (2016-12-03)
[Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.9.0...v1.9.1)
**Closed issues:**
- Is testdouble.js not compatible with PhantomJS? [\#154](https://github.com/testdouble/testdouble.js/issues/154)
- Model instance creation assistance [\#149](https://github.com/testdouble/testdouble.js/issues/149)
- Excessive warn "was both stubbed and verified" [\#148](https://github.com/testdouble/testdouble.js/issues/148)
**Merged pull requests:**
- typo [\#152](https://github.com/testdouble/testdouble.js/pull/152) ([ghedamat](https://github.com/ghedamat))
## [v1.9.0](https://github.com/testdouble/testdouble.js/tree/v1.9.0) (2016-10-25)

@@ -4,0 +58,0 @@ [Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.8.0...v1.9.0)

2

docs/3-getting-started.md

@@ -274,3 +274,3 @@ # Getting Started

Speaking of verification, the API of `td.verify` should look familiar, as it is
symmetrical to `when`. By saying `td.verify(submitProblem('saved problem')`,
symmetrical to `when`. By saying `td.verify(submitProblem('saved problem'))`,
we're telling testdouble.js to throw an error unless `submitProblem` is invoked

@@ -277,0 +277,0 @@ with exactly one argument: `'saved problem'`.

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

@@ -29,2 +29,3 @@ "homepage": "https://github.com/testdouble/testdouble.js",

"test:browser": "npm run compile && testem ci",
"test:typescript": "tsc --noEmit -p ./test/src/typescript",
"test:example:webpack": "cd examples/webpack && npm i && npm test & cd ../..",

@@ -35,3 +36,3 @@ "test:example:node": "cd examples/node && npm i && npm test && cd ../..",

"test:example": "npm run test:example:node && npm run test:example:lineman && npm run test:example:webpack && npm run test:example:babel",
"test:all": "npm test && testem ci && npm run test:example",
"test:all": "npm test && testem ci && npm run test:example && npm run test:typescript",
"test:ci": "npm run clean && npm run compile && npm run test:all && npm run clean:dist && echo \"All done!\"",

@@ -68,4 +69,6 @@ "test:debug": "npm test -- --debug-brk",

"semver": "^5.3.0",
"testem": "^0.9.4"
"testem": "^0.9.4",
"typescript": "^2.1.4"
},
"typings": "./index.d.ts",
"keywords": [

@@ -72,0 +75,0 @@ "tdd",

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