Skip to content

Don't stub prototypes #750

@mcmire

Description

@mcmire
  • Stubbing the prototype of the class under test is effectively the same as testing private functions, which is covered by Don't test private functions #749.
  • Stubbing the prototype of a library that isn't under test should be unnecessary. Anything we need to stub in a controller should be passed in as a parameter to the constructor.

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