Skip to content

Commit

Permalink
Fix builds and remove broken stories that magically came back for som…
Browse files Browse the repository at this point in the history
…e reason
  • Loading branch information
luucvanderzee committed Mar 8, 2024
1 parent bb4a627 commit 1a91531
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 122 deletions.
2 changes: 1 addition & 1 deletion front/.storybook/mockModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const appFolder = path.join(process.cwd(), 'app');
const rel = (...args: string[]) => path.resolve(path.join(appFolder, ...args));

const mockModules = {
'utils/locale': rel('utils', '__mocks__', 'locale2'),
'utils/locale': rel('utils', '__mocks__', 'locale'),
modules: rel('modules', '__mocks__', 'index'),
'utils/cl-router/Link': rel('utils', 'cl-router', '__mocks__', 'Link'),
'@researchgate/react-intersection-observer': path.join(
Expand Down
1 change: 1 addition & 0 deletions front/app/api/phases/__mocks__/_mockServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ const votingPhase: IPhaseData = {
'da-DK': 'afstemninger',
},
votes_count: 0,
report_public: false,
},
relationships: {
permissions: {
Expand Down
28 changes: 0 additions & 28 deletions front/app/components/UI/Button/Button.stories.tsx

This file was deleted.

This file was deleted.

55 changes: 0 additions & 55 deletions front/app/containers/Authentication/Authentication.stories.tsx

This file was deleted.

4 changes: 4 additions & 0 deletions front/app/utils/__mocks__/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ export function removeUrlLocale(pathname: string): string {
}
return urlSegments.length === 1 ? '/' : urlSegments.join('/');
}

export function hasTextInSpecifiedLocale() {
return true;
}

0 comments on commit 1a91531

Please sign in to comment.