Skip to content

Missing Stub Weird API  #21

@jonathan-benn

Description

@jonathan-benn

Here are some weird Stub API functions that are missing:

sinon.addBehavior(name, fn);
# Add a custom behavior. The name will be available as a function on stubs,
# and the chaining mechanism will be set up for you

stub.get(getterFn)
# Replaces a new getter for this stub.

stub.set(setterFn)
# Defines a new setter for this stub.

stub.value(newVal)
# Defines a new value for this stub.

Are these needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions