Skip to content

Improved Credit card utility#414

Merged
bodiam merged 2 commits intodatafaker-net:mainfrom
ChiragMangukia:creditcards
Sep 29, 2022
Merged

Improved Credit card utility#414
bodiam merged 2 commits intodatafaker-net:mainfrom
ChiragMangukia:creditcards

Conversation

@ChiragMangukia
Copy link
Contributor

Improved Credit card utility request as requested in Issue #411

Comment on lines -8 to +21
@Test
void creditCardNumber() {
assertThat(faker.business().creditCardNumber()).isNotEmpty();
}
@Test
void creditCardNumber() {
assertThat(faker.business().creditCardNumber()).isNotEmpty();
}

@Test
void creditCardType() {
assertThat(faker.business().creditCardType()).isNotEmpty();
}
@Test
void creditCardType() {
assertThat(faker.business().creditCardType()).isNotEmpty();
}

@Test
void creditCardExpiry() {
assertThat(faker.business().creditCardExpiry()).isNotEmpty();
}
@Test
void creditCardExpiry() {
assertThat(faker.business().creditCardExpiry()).isNotEmpty();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we have these formatting changes?
Sometimes formatting changes are ok, however I would split logic changes and formatting changes in different commits. It would simplify going through git history while reading the code and trying to understand the logic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for heads up! Will take care of it in future PRs :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the change, appreciate it. I'll merge it and reformat it in a new PR, no problem!

Copy link
Contributor

@bodiam bodiam left a comment

Choose a reason for hiding this comment

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

Tabs to spaces.

@bodiam bodiam closed this Sep 29, 2022
@bodiam bodiam reopened this Sep 29, 2022
@bodiam bodiam merged commit 449a0f4 into datafaker-net:main Sep 29, 2022
@ChiragMangukia ChiragMangukia deleted the creditcards branch September 29, 2022 11:03
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