aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2024-12-29 21:10:52 +0700
committerGitHub <[email protected]>2024-12-29 14:10:52 +0000
commiteceb17d25741c5fb1bd56b8151067eed3708a076 (patch)
treeb2b873836eec2cd9171161dbf5982c3115cb7348 /src/modules
parentc0d92b8fa856d0c841f5aee57c6e08627025447a (diff)
downloadfaker-eceb17d25741c5fb1bd56b8151067eed3708a076.tar.xz
faker-eceb17d25741c5fb1bd56b8151067eed3708a076.zip
fix(image): dataUri should return random type (#3347)
* fix(image): dataUri should return random type * fix jsdoc
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/image/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts
index 67d0e2d8..2eafd78b 100644
--- a/src/modules/image/index.ts
+++ b/src/modules/image/index.ts
@@ -369,7 +369,7 @@ export class ImageModule extends ModuleBase {
* The type of the image to return. Consisting of
* the file extension and the used encoding.
*
- * @default faker.helpers.arrayElements(['svg-uri', 'svg-base64'])
+ * @default faker.helpers.arrayElement(['svg-uri', 'svg-base64'])
*/
type?: 'svg-uri' | 'svg-base64';
} = {}
@@ -378,7 +378,7 @@ export class ImageModule extends ModuleBase {
width = this.faker.number.int({ min: 1, max: 3999 }),
height = this.faker.number.int({ min: 1, max: 3999 }),
color = this.faker.color.rgb(),
- type = this.faker.helpers.arrayElements(['svg-uri', 'svg-base64']),
+ type = this.faker.helpers.arrayElement(['svg-uri', 'svg-base64']),
} = options;
const svgString = `<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="${width}" height="${height}"><rect width="100%" height="100%" fill="${color}"/><text x="${