From a8dfa2fcde59a1ec9e5beb2e93c690a8ec532cdf Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 13 Oct 2024 14:20:36 +0200 Subject: fix(food): use arrayElement instead of fake for adjective (#3178) --- src/modules/food/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 + ); } /** -- cgit v1.2.3