Skip to content

Commit a8dfa2f

Browse files
authoredOct 13, 2024··
fix(food): use arrayElement instead of fake for adjective (#3178)
1 parent 60c4865 commit a8dfa2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/modules/food/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export class FoodModule extends ModuleBase {
1818
* @since 9.0.0
1919
*/
2020
adjective(): string {
21-
return this.faker.helpers.fake(this.faker.definitions.food.adjective);
21+
return this.faker.helpers.arrayElement(
22+
this.faker.definitions.food.adjective
23+
);
2224
}
2325

2426
/**

0 commit comments

Comments
 (0)
Please sign in to comment.