Skip to content

Commit

Permalink
fix(food): use arrayElement instead of fake for adjective (#3178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Oct 13, 2024
1 parent 60c4865 commit a8dfa2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/food/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export class FoodModule extends ModuleBase {
* @since 9.0.0
*/
adjective(): string {
return this.faker.helpers.fake(this.faker.definitions.food.adjective);
return this.faker.helpers.arrayElement(
this.faker.definitions.food.adjective
);
}

/**
Expand Down

0 comments on commit a8dfa2f

Please sign in to comment.