Skip to content

Whinepad: getValue returns string for FormInput with type="year" #4

@pedrottimark

Description

@pedrottimark

While modifying the tests to learn about recent upgrades to Jest, expect getValue() to be equal to the defaultValue prop failed for <FormInput type="year" defaultValue={2015} /> from the schema sample because "2015" was the actual value. Hurray for tests.

However, not being sure what to do if the input is not a number and yet not distract from the main point, I will refrain from submitting a pull request ;)

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