Skip to content

Don't stub prototypes #750

Open
Open

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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