Skip to content

Assert lacks calledWithNew #1535

@tsclaus

Description

@tsclaus
  • Sinon version : 2.3.8 but newest documentation still lacks it
  • Environment : N/A
  • Example URL : N/A
  • Other libraries you are using: N/A

For the most part, the Assert methods mirror the Spy methods. However, Spy supports calledWithNew while Assert does not. Not a huge inconvenience but it forces test files to use something besides the assert pattern. assert.calledWithNew(spy) makes the most sense for how it would be implemented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions