Skip to content

Commit 31224ce

Browse files
authored
Merge branch 'next' into docs/api/examples-refresh
2 parents f9f7d28 + 1fd69d9 commit 31224ce

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
export default [
22
'/6011-####-####-###L/',
3-
'/6011-62##-####-####-###L/',
43
'/64[4-9]#-####-####-###L/',
5-
'/64[4-9]#-62##-####-####-###L/',
64
'/65##-####-####-###L/',
7-
'/65##-62##-####-####-###L/',
85
];
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
export default [
22
'6011-####-####-###L',
3-
'6011-62##-####-####-###L',
43
'64[4-9]#-####-####-###L',
5-
'64[4-9]#-62##-####-####-###L',
64
'65##-####-####-###L',
7-
'65##-62##-####-####-###L',
85
];

src/modules/helpers/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
771771
}
772772

773773
/**
774-
* Returns a random key from given object.
774+
* Returns a random key from the given object.
775775
*
776776
* @template T The type of the object to select from.
777777
*
@@ -780,7 +780,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
780780
* @throws If the given object is empty.
781781
*
782782
* @example
783-
* faker.helpers.objectKey({ myProperty: 'myValue' }) // 'myProperty'
783+
* faker.helpers.objectKey({ Cheetah: 120, Falcon: 390, Snail: 0.03 }) // 'Falcon'
784784
*
785785
* @since 6.3.0
786786
*/
@@ -790,7 +790,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
790790
}
791791

792792
/**
793-
* Returns a random value from given object.
793+
* Returns a random value from the given object.
794794
*
795795
* @template T The type of object to select from.
796796
*
@@ -799,7 +799,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
799799
* @throws If the given object is empty.
800800
*
801801
* @example
802-
* faker.helpers.objectValue({ myProperty: 'myValue' }) // 'myValue'
802+
* faker.helpers.objectValue({ Cheetah: 120, Falcon: 390, Snail: 0.03 }) // 390
803803
*
804804
* @since 6.3.0
805805
*/
@@ -818,7 +818,7 @@ export class SimpleHelpersModule extends SimpleModuleBase {
818818
* @throws If the given object is empty.
819819
*
820820
* @example
821-
* faker.helpers.objectEntry({ prop1: 'value1', prop2: 'value2' }) // ['prop1', 'value1']
821+
* faker.helpers.objectEntry({ Cheetah: 120, Falcon: 390, Snail: 0.03 }) // ['Snail', 0.03]
822822
*
823823
* @since 8.0.0
824824
*/

test/modules/__snapshots__/finance.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ exports[`finance > 42 > creditCardCVV 1`] = `"397"`;
3434

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

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

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

0 commit comments

Comments
 (0)