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

Handle null and undefined in formatPercentage and formatWebsite #222

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

rkuykendall
Copy link
Contributor

No description provided.

const EMPTY_VALUES = [
' ',
' ',
'',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason for the different # of spaces in the empty string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just seemed like a fun extra thing to test for. A very long but technically empty string. Not too dissimilar from ' ' but I have some code that strips the string down no matter the length so I wanted to test it.

A QA Engineer walks into a bar. The QA engineer orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha!!!!

@rkuykendall rkuykendall merged commit 2fe618b into master Jan 28, 2020
@rkuykendall rkuykendall deleted the better-empty-checking branch January 28, 2020 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants