Skip to content

Inconsistent Naming: toHaveBeenCalledOnce vs. toHaveBeenCalledExactlyOnceWith #706

Open
@jeengbe

Description

@jeengbe

Because toHaveBeenCalledExactlyOnceWith includes "exactly", this suggests that toHaveBeenCalledOnce actually checks for at least one call. But the documentation (and implementation) explain that both check for exactly one call. This naming discrepancy is misleading at best. I don't have an opinion about which is preferrable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions