Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 5dda055

Browse files
committed
fix tests
1 parent 0174393 commit 5dda055

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+189
-146
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
node-version: 14
2121
- name: Install packages
2222
run: npm install
23-
# - name: Run tests
24-
# run: npm test
23+
- name: Run tests
24+
run: npm test
2525
- name: Build the Electron App
2626
run: npm run package
2727
- name: Build/release Electron app

package-lock.json

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"apollo-link-debounce": "^3.0.0",
112112
"bootstrap": "^5.1.3",
113113
"buffer": "^6.0.3",
114+
"cross-fetch": "^3.1.5",
114115
"electron-debug": "^3.2.0",
115116
"electron-log": "^4.4.8",
116117
"electron-store": "^8.1.0",

src/renderer/components/CookbookTable/CookbookTable.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import {
1818
Logos,
1919
} from '@codiga/codiga-components';
2020

21-
import { getCookbookUrl, getGroupUrl } from 'renderer/utils/urlUtils';
22-
import { getAvatarUrl } from 'renderer/utils/userUtils';
23-
import { AssistantCookbook } from 'renderer/types/assistantTypes';
24-
import { PageTypes } from 'renderer/types/pageTypes';
25-
import FavoriteCookbook from 'renderer/components/Favorite/FavoriteCookbook';
26-
import UserLink from 'renderer/components/UserLink';
21+
import { getCookbookUrl, getGroupUrl } from '../../../renderer/utils/urlUtils';
22+
import { getAvatarUrl } from '../../../renderer/utils/userUtils';
23+
import { AssistantCookbook } from '../../../renderer/types/assistantTypes';
24+
import { PageTypes } from '../../../renderer/types/pageTypes';
25+
import FavoriteCookbook from '../../../renderer/components/Favorite/FavoriteCookbook';
26+
import UserLink from '../../../renderer/components/UserLink';
2727
import VotesCurrent from '../VotesCurrent';
2828

2929
const Td = (props: TableCellProps) => (

src/renderer/components/CookbookTable/CookbookTableEmpty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link } from '@chakra-ui/react';
22
import { EmptyState } from '@codiga/codiga-components';
3-
import { APP_URL } from 'renderer/lib/config';
3+
import { APP_URL } from '../../../renderer/lib/config';
44

55
export default function CookbookTableEmpty() {
66
return (

src/renderer/components/CookbookTable/CookbookTableEmptyFiltered.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button, Flex, Link } from '@chakra-ui/react';
22
import { EmptyState } from '@codiga/codiga-components';
3-
import { APP_URL } from 'renderer/lib/config';
3+
import { APP_URL } from '../../../renderer/lib/config';
44
import { useFilters } from '../FiltersContext';
55

66
export default function CookbookTableEmptyFiltereed() {

src/renderer/components/CookbookTable/CookbookTableError.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link } from '@chakra-ui/react';
22
import { EmptyState } from '@codiga/codiga-components';
3-
import { APP_URL } from 'renderer/lib/config';
3+
import { APP_URL } from '../../../renderer/lib/config';
44

55
export default function CookbookTableError() {
66
return (

src/renderer/components/Favorite/Favorite.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button, Tooltip } from '@chakra-ui/react';
22
import { HeartFilledIcon, HeartIcon } from '@codiga/codiga-components';
3-
import { useUser } from 'renderer/components/UserContext';
3+
import { useUser } from '../../../renderer/components/UserContext';
44

55
export type FavoriteProps = {
66
isSubscribed?: boolean;

src/renderer/components/Favorite/FavoriteCookbook.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import { useToast } from '@codiga/codiga-components';
33
import {
44
SUBSCRIBE_TO_COOKBOOK,
55
UNSUBSCRIBE_TO_COOKBOOK,
6-
} from 'renderer/graphql/mutations';
6+
} from '../../../renderer/graphql/mutations';
77
import {
88
GET_SHARED_COOKBOOKS,
99
GET_USER_COOKBOOKS,
1010
GET_USER_SUBSCRIBED_COOKBOOKS,
11-
} from 'renderer/graphql/queries';
11+
} from '../../../renderer/graphql/queries';
1212
import {
1313
GET_SHARED_COOKBOOKS_VARIABLES,
1414
GET_USER_COOKBOOKS_VARIABLES,
1515
GET_USER_SUBSCRIBED_COOKBOOKS_VARIABLES,
16-
} from 'renderer/graphql/variables';
16+
} from '../../../renderer/graphql/variables';
1717
import Favorite, { FavoriteProps } from './Favorite';
1818

1919
type FavoriteCookbookProps = Pick<FavoriteProps, 'isSubscribed'> & {

src/renderer/components/Favorite/FavoriteSnippet.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import { useToast } from '@codiga/codiga-components';
33
import {
44
SUBSCRIBE_TO_RECIPE,
55
UNSUBSCRIBE_TO_RECIPE,
6-
} from 'renderer/graphql/mutations';
6+
} from '../../../renderer/graphql/mutations';
77
import {
88
GET_RECIPES_SEMANTICALLY,
99
GET_SHARED_RECIPES,
1010
GET_USER_RECIPES,
1111
GET_USER_SUBSCRIBED_RECIPES,
12-
} from 'renderer/graphql/queries';
12+
} from '../../../renderer/graphql/queries';
1313
import {
1414
GET_SHARED_RECIPES_VARIABLES,
1515
GET_USER_RECIPES_VARIABLES,
1616
GET_USER_SUBSCRIBED_RECIPES_VARIABLES,
17-
} from 'renderer/graphql/variables';
17+
} from '../../../renderer/graphql/variables';
1818
import Favorite, { FavoriteProps } from './Favorite';
1919

2020
type FavoriteRecipeProps = Pick<FavoriteProps, 'isSubscribed'> & {

0 commit comments

Comments
 (0)