File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ export class Finance {
49
49
*/
50
50
accountName ( ) : string {
51
51
return [
52
- this . Helpers . randomize ( this . faker . definitions . finance . account_type ) ,
52
+ this . faker . random . arrayElement (
53
+ this . faker . definitions . finance . account_type
54
+ ) ,
53
55
'Account' ,
54
56
] . join ( ' ' ) ;
55
57
}
@@ -160,7 +162,7 @@ export class Finance {
160
162
* faker.finance.transactionType() // 'payment'
161
163
*/
162
164
transactionType ( ) : string {
163
- return this . Helpers . randomize (
165
+ return this . faker . random . arrayElement (
164
166
this . faker . definitions . finance . transaction_type
165
167
) ;
166
168
}
Original file line number Diff line number Diff line change @@ -680,7 +680,9 @@ export class Helpers {
680
680
name : [ this . faker . finance . accountName ( ) , this . faker . finance . mask ( ) ] . join (
681
681
' '
682
682
) ,
683
- type : this . randomize ( this . faker . definitions . finance . transaction_type ) ,
683
+ type : this . faker . random . arrayElement (
684
+ this . faker . definitions . finance . transaction_type
685
+ ) ,
684
686
account : this . faker . finance . account ( ) ,
685
687
} ;
686
688
}
You can’t perform that action at this time.
0 commit comments