Skip to content

Commit

Permalink
fix: provider renamed issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
beninsydney committed Apr 29, 2022
1 parent f0b7d87 commit b2e9a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/finance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ export class Finance {
}

/**
* Returns a random credit card provider.
* Returns a random credit card issuer.
*
* @example
* faker.finance.creditCardProvider() // 'discover'
* faker.finance.creditCardIssuer() // 'discover'
*/
creditCardProvider(): string {
creditCardIssuer(): string {
return this.faker.random.objectElement(
this.faker.definitions.finance.credit_card,
'key'
Expand Down
2 changes: 1 addition & 1 deletion test/finance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ describe('finance', () => {

describe('cardCardProvider()', () => {
it('should return a string', () => {
const provider = faker.finance.creditCardProvider();
const provider = faker.finance.creditCardIssuer();
expect(provider).toBeTypeOf('string');
expect(Object.keys(faker.definitions.finance.credit_card)).toContain(
provider
Expand Down

0 comments on commit b2e9a38

Please sign in to comment.