Skip to content

Commit

Permalink
chore: replace test string
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingrando committed Mar 1, 2024
1 parent 109360b commit f7d9b1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit f7d9b1f

Please sign in to comment.