aboutsummaryrefslogtreecommitdiff
path: root/src/modules/food
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2024-10-13 14:20:36 +0200
committerGitHub <[email protected]>2024-10-13 12:20:36 +0000
commita8dfa2fcde59a1ec9e5beb2e93c690a8ec532cdf (patch)
tree7b1837975f06a7299a109a8afd97ab32e3de5cbe /src/modules/food
parent60c48653eee8cddb1599ac98a893025127421084 (diff)
downloadfaker-a8dfa2fcde59a1ec9e5beb2e93c690a8ec532cdf.tar.xz
faker-a8dfa2fcde59a1ec9e5beb2e93c690a8ec532cdf.zip
fix(food): use arrayElement instead of fake for adjective (#3178)
Diffstat (limited to 'src/modules/food')
-rw-r--r--src/modules/food/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/food/index.ts b/src/modules/food/index.ts
index 0effaae6..45b91f30 100644
--- a/src/modules/food/index.ts
+++ b/src/modules/food/index.ts
@@ -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
+ );
}
/**