Skip to content

Commit

Permalink
Merge branch 'next' into docs/api/examples-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Dec 21, 2024
2 parents f9f7d28 + 1fd69d9 commit 31224ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/locales/el/finance/credit_card/discover.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
export default [
'/6011-####-####-###L/',
'/6011-62##-####-####-###L/',
'/64[4-9]#-####-####-###L/',
'/64[4-9]#-62##-####-####-###L/',
'/65##-####-####-###L/',
'/65##-62##-####-####-###L/',
];
3 changes: 0 additions & 3 deletions src/locales/en/finance/credit_card/discover.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
export default [
'6011-####-####-###L',
'6011-62##-####-####-###L',
'64[4-9]#-####-####-###L',
'64[4-9]#-62##-####-####-###L',
'65##-####-####-###L',
'65##-62##-####-####-###L',
];
10 changes: 5 additions & 5 deletions src/modules/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
}

/**
* Returns a random key from given object.
* Returns a random key from the given object.
*
* @template T The type of the object to select from.
*
Expand All @@ -780,7 +780,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
* @throws If the given object is empty.
*
* @example
* faker.helpers.objectKey({ myProperty: 'myValue' }) // 'myProperty'
* faker.helpers.objectKey({ Cheetah: 120, Falcon: 390, Snail: 0.03 }) // 'Falcon'
*
* @since 6.3.0
*/
Expand All @@ -790,7 +790,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
}

/**
* Returns a random value from given object.
* Returns a random value from the given object.
*
* @template T The type of object to select from.
*
Expand All @@ -799,7 +799,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
* @throws If the given object is empty.
*
* @example
* faker.helpers.objectValue({ myProperty: 'myValue' }) // 'myValue'
* faker.helpers.objectValue({ Cheetah: 120, Falcon: 390, Snail: 0.03 }) // 390
*
* @since 6.3.0
*/
Expand All @@ -818,7 +818,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
* @throws If the given object is empty.
*
* @example
* faker.helpers.objectEntry({ prop1: 'value1', prop2: 'value2' }) // ['prop1', 'value1']
* faker.helpers.objectEntry({ Cheetah: 120, Falcon: 390, Snail: 0.03 }) // ['Snail', 0.03]
*
* @since 8.0.0
*/
Expand Down
2 changes: 1 addition & 1 deletion test/modules/__snapshots__/finance.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`finance > 42 > creditCardCVV 1`] = `"397"`;

exports[`finance > 42 > creditCardIssuer 1`] = `"discover"`;

exports[`finance > 42 > creditCardNumber > noArgs 1`] = `"6575-6211-0867-0982-1139"`;
exports[`finance > 42 > creditCardNumber > noArgs 1`] = `"6575-1108-6709-8211"`;

exports[`finance > 42 > creditCardNumber > with issuer 1`] = `"4975110867099"`;

Expand Down

0 comments on commit 31224ce

Please sign in to comment.