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

Fix toString() output #500

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Fix toString() output #500

merged 2 commits into from
Aug 26, 2024

Commits on Aug 26, 2024

  1. Fix toString() output

    The output when just inheriting was
    function() { [native code] }
    vs
    function Date() { [native code] }
    in the real Date object.
    
    I had to make a choice between having the same function identity and function output and opted for the latter,
    since that is what the mother sinon project targets.
    fatso83 committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    030e53c View commit details
    Browse the repository at this point in the history
  2. Add a missing test on using timers not present on a custom global

    This was present in Sinon and should be here as well
    fatso83 committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9fdc01e View commit details
    Browse the repository at this point in the history