Skip to content

Commit

Permalink
fix(test): faker.name -> faker.person
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Stenström-Diaz <[email protected]>
  • Loading branch information
belanglos and vsdkth committed Feb 28, 2024
1 parent fd4be2d commit e7d7bf5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions public/js/app/pages/__tests__/CoursePage.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions server/apiCalls/__tests__/ugRestApi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@ jest.mock('../koppsCourseData', () => ({ getLadokRoundIdsFromApplicationCodes: (

const userInfoToCheckDuplicate = {
email: faker.internet.email(),
givenName: faker.name.firstName(),
id: faker.datatype.uuid(),
surname: faker.name.lastName(),
givenName: faker.person.firstName(),
id: faker.string.uuid(),
surname: faker.person.lastName(),
}

const users = [
{
email: faker.internet.email(),
givenName: faker.name.firstName(),
id: faker.datatype.uuid(),
surname: faker.name.lastName(),
givenName: faker.person.firstName(),
id: faker.string.uuid(),
surname: faker.person.lastName(),
},
{
email: faker.internet.email(),
givenName: faker.name.firstName(),
id: faker.datatype.uuid(),
surname: faker.name.lastName(),
givenName: faker.person.firstName(),
id: faker.string.uuid(),
surname: faker.person.lastName(),
},
{
email: faker.internet.email(),
givenName: faker.name.firstName(),
id: faker.datatype.uuid(),
surname: faker.name.lastName(),
givenName: faker.person.firstName(),
id: faker.string.uuid(),
surname: faker.person.lastName(),
},
userInfoToCheckDuplicate,
userInfoToCheckDuplicate,
Expand Down

0 comments on commit e7d7bf5

Please sign in to comment.