From 1350d784b7382c081082eb0bcc91567397498df4 Mon Sep 17 00:00:00 2001 From: Valetek <34715110+Valetek@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:40:21 +0100 Subject: [PATCH] Update createMethods.ts wrong function call faker.internet.username() => faker.internet.userName() --- src/helpers/createMethods.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/createMethods.ts b/src/helpers/createMethods.ts index 23b703b..9bbf530 100644 --- a/src/helpers/createMethods.ts +++ b/src/helpers/createMethods.ts @@ -75,7 +75,7 @@ function getFieldDefinition( return `${field.name}: faker.image.avatar()`; } if (field.name === 'username') { - return `${field.name}: faker.internet.username()`; + return `${field.name}: faker.internet.userName()`; } if (field.name === 'name') { return `${field.name}: faker.person.fullName()`;