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

testdouble

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testdouble - npm Package Versions

1
12

3.9.2

Diff

Changelog

Source

v3.9.2 (2018-12-31)

Full Changelog

Closed issues:

  • Call a Callback Multiple Times #397
  • TypeScript: Update Definition #395

Merged pull requests:

  • allow for creating testdoubles using interface only #400 (lgandecki)
searls
published 3.9.1 •

Changelog

Source

v3.9.1 (2018-11-29)

Full Changelog

Closed issues:

  • td.replace before it vs td.replace inside of it #394
  • Add sticky td.reset.onReset hook #377

Merged pull requests:

  • Add type information for imitation to the exported typings file #396 (lisamai)
searls
published 3.9.0 •

Changelog

Source

v3.9.0 (2018-11-20)

Full Changelog

Closed issues:

  • There are legitimate cases to use td.verify #389
  • TypeError on td.replace('aws-sdk') #388
  • Multiple stubs, count wrong? #387

Merged pull requests:

searls
published 3.8.2 •

Changelog

Source

v3.8.2 (2018-10-08)

Full Changelog

Implemented enhancements:

  • Verifying stubs that return promises without warnings? #245

Closed issues:

  • How do I verify only 1 of 2 stubbed functions was called? #384
  • Fake timers / mock Date #383
  • Getting a not a constructor error when trying to stub an external class dependency #382
  • how to handle async callbacks #380
  • mocking non-direct dependency #379
  • How to replace momentjs ? #378
  • testdouble incompatible with coverage tools? #374
  • td.replaced module still returning stub after a td.reset() #373
  • Awaiting a testdouble function always resolves #371
  • Stub one function and use originals for rest #368
  • td.replace is breaking type definitions from sanctuary.js #327

Merged pull requests:

searls
published 3.8.1 •

Changelog

Source

v3.8.1 (2018-05-05)

Full Changelog

Implemented enhancements:

  • Better verification messages #161

Closed issues:

  • Trouble replacing ES6 classes #365
  • You have a global leak: \_\_core-js\_shared\_\_ #364
  • testdouble causes bluebird to emit Unhandled rejection #168
  • Should style API of chai.js doesn't always work on test doubles since 1.6.2 #134
searls
published 3.8.0 •

Changelog

Source

v3.8.0 (2018-04-29)

Full Changelog

Implemented enhancements:

  • Improve td.replace error message for incorrect module path #355

Closed issues:

  • td.verify(object.function(new Class("param"))) not asserting "param" #362
  • How to Stub a Chained Function #360
  • Critical dependency: the request of a dependency is an expression? #354

Merged pull requests:

  • Better missing module message for td.replace() #363 (searls)
searls
published 3.7.0 •

Changelog

Source

v3.7.0 (2018-03-31)

Full Changelog

Closed issues:

  • Compare dates when using td.matchers.contains #358
  • verifiable thenThrow #288
  • docs: simple page that lists the entire API #253
  • Planning Discussion for a move to TypeScript #252
  • More support for ES Modules #246
  • Consider using _.isObjectLike rather than _.isPlainObject within td.object #224

Merged pull requests:

  • Enhance contains for edge cases, make nesting behave consistently #359 (searls)
searls
published 3.6.0 •

Changelog

Source

v3.6.0 (2018-03-24)

Full Changelog

Closed issues:

  • td.replace a required method? #353

Merged pull requests:

searls
published 3.5.2 •

Changelog

Source

v3.5.2 (2018-02-26)

Full Changelog

Merged pull requests:

searls
published 3.5.1 •

Changelog

Source

v3.5.1 (2018-02-25)

Full Changelog

Closed issues:

  • slow performance when replacing big modules #340
  • Replace method in tested file #339

Merged pull requests:

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