Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/util/project/installComponentFromCache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import findFileInCurrentPath from '../fs/findFileInCurrentPath';
import installComponentFromCache from './installComponentFromCache';

const findFileMock = (findFileInCurrentPath as jest.Mock).mockReturnValue(
'/home/uname/Projects/cornflake/web/themes/custom/cornflake/project.emulsify.json'
'/home/username/Projects/drupal-project/web/themes/custom/themename/project.emulsify.json'
);
const pathExistsMock = (pathExists as jest.Mock).mockResolvedValue(false);

Expand Down Expand Up @@ -87,7 +87,7 @@ describe('installComponentFromCache', () => {
expect(copyItemFromCache as jest.Mock).toHaveBeenCalledWith(
'systems',
['compound', './components/00-base', 'link'],
'/home/uname/Projects/cornflake/web/themes/custom/cornflake/components/00-base/link',
'/home/username/Projects/drupal-project/web/themes/custom/themename/components/00-base/link',
false
);
});
Expand Down
6 changes: 3 additions & 3 deletions src/util/project/installGeneralAssetsFromCache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import findFileInCurrentPath from '../fs/findFileInCurrentPath';
import installGeneralAssetsFromCache from './installGeneralAssetsFromCache';

const findFileMock = (findFileInCurrentPath as jest.Mock).mockReturnValue(
'/home/uname/Projects/cornflake/web/themes/custom/cornflake/project.emulsify.json'
'/home/username/Projects/drupal-project/web/themes/custom/themename/project.emulsify.json'
);
const copyItemMock = (copyItemFromCache as jest.Mock).mockResolvedValue(true);

Expand Down Expand Up @@ -52,14 +52,14 @@ describe('installGeneralAssetsFromCache', () => {
1,
'systems',
['compound', './components/00-base/00-defaults'],
'/home/uname/Projects/cornflake/web/themes/custom/cornflake/components/00-base/00-defaults',
'/home/username/Projects/drupal-project/web/themes/custom/themename/components/00-base/00-defaults',
true
);
expect(copyItemMock).toHaveBeenNthCalledWith(
2,
'systems',
['compound', './components/style.scss'],
'/home/uname/Projects/cornflake/web/themes/custom/cornflake/components/style.scss',
'/home/username/Projects/drupal-project/web/themes/custom/themename/components/style.scss',
true
);
});
Expand Down