Skip to content

capitalize on string that start with a space is not working.  #519

Description

@sofianeOuafir

the following test wouldn't pass

const foo = ' my string';
expect(capitalize(foo)).toEqual('My string'); // not passing

as a developer I expected this test to pass, did you think of that case scenario?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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