Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Remove threw(obj) from docs #2513

Merged
merged 1 commit into from
May 23, 2023
Merged

docs: Remove threw(obj) from docs #2513

merged 1 commit into from
May 23, 2023

Commits on May 15, 2023

  1. docs: Remove threw(obj) from docs

    Since the introduction of threw in
    0feec9f, no one have reported that
    `threw(obj)` doesn't work as the documentation states.
    
    ```js
    const sinon = require("sinon");
    const o = { pie: "apple" };
    const f = sinon.fake.throws(o);
    
    f();
    // this is supposed to return true
    f.threw(o);
    // => false
    ```
    
    Since it has been 12+ years without an error report, it's safe to assume
    that no one uses the `threw` method in this way. Let's remove it from
    the documentation.
    mroderick committed May 15, 2023
    Configuration menu
    Copy the full SHA
    832439d View commit details
    Browse the repository at this point in the history