Skip to content

Should throw RangeError if not date string #73

@iyobo-vivun

Description

@iyobo-vivun

Native Javascript date throws a RangeError when trying to parse a bad date e.g new Date("not-a-date").
timezone-mock throws an AssertionError in this case.

It really should throw a RangeError like native javascript Date object.

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