diff options
| author | ST-DDT <[email protected]> | 2024-10-13 14:20:36 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-13 12:20:36 +0000 |
| commit | a8dfa2fcde59a1ec9e5beb2e93c690a8ec532cdf (patch) | |
| tree | 7b1837975f06a7299a109a8afd97ab32e3de5cbe /src/modules | |
| parent | 60c48653eee8cddb1599ac98a893025127421084 (diff) | |
| download | faker-a8dfa2fcde59a1ec9e5beb2e93c690a8ec532cdf.tar.xz faker-a8dfa2fcde59a1ec9e5beb2e93c690a8ec532cdf.zip | |
fix(food): use arrayElement instead of fake for adjective (#3178)
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/food/index.ts | 4 |
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 + ); } /** |
