Skip to content

Commit

Permalink
chore: fix types & getPathname test names
Browse files Browse the repository at this point in the history
refs KK-1072
  • Loading branch information
karisal-anders authored and nikomakela committed Mar 25, 2024
1 parent d884053 commit dc3ffce
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/route/utils/__tests__/getPathname.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const testCases = (language: string) => [
];

test.each(languages.flatMap((language) => testCases(language)))(
'when pathname is %p and language is %p, yields %p',
'when pathname is "%s" and language is "%s", yields "%s"',
(pathname, language, result) => {
expect(getPathname(pathname, language)).toEqual(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const convertFrom: RegistrationFormValues = {
lastName: 'gln',
email: 'yomama@example.com',
languagesSpokenAtHome: ['fi'],
hasAcceptedMarketing: false,
},
preferLanguage: Language.En,
agree: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const initialValues: MyProfile = {
phoneNumber: '0904422233',
email: 'email@example.com',
language: Language.Sv,
hasAcceptedMarketing: false,
children: {
edges: [],
},
Expand Down
1 change: 1 addition & 0 deletions src/domain/profile/state/ProfileReducers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const defaultProfileData: MyProfile = {
phoneNumber: '',
email: '',
language: Language.Fi,
hasAcceptedMarketing: false,
children: {
edges: [],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const values: RegistrationFormValues = {
lastName: 'gln',
email: 'yomama@example.com',
languagesSpokenAtHome: ['en'],
hasAcceptedMarketing: false,
},
agree: false,
verifyInformation: false,
Expand Down
1 change: 1 addition & 0 deletions src/domain/registration/state/RegistrationReducers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const defaultRegistrationData: RegistrationData = {
lastName: '',
phoneNumber: '',
languagesSpokenAtHome: [],
hasAcceptedMarketing: false,
},
preferLanguage: Language.Fi,
agree: false,
Expand Down

0 comments on commit dc3ffce

Please sign in to comment.