diff --git a/src/util/project/installComponentFromCache.test.ts b/src/util/project/installComponentFromCache.test.ts index cbfffeb..676ed07 100644 --- a/src/util/project/installComponentFromCache.test.ts +++ b/src/util/project/installComponentFromCache.test.ts @@ -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); @@ -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 ); }); diff --git a/src/util/project/installGeneralAssetsFromCache.test.ts b/src/util/project/installGeneralAssetsFromCache.test.ts index 10eb4a6..6853f6f 100644 --- a/src/util/project/installGeneralAssetsFromCache.test.ts +++ b/src/util/project/installGeneralAssetsFromCache.test.ts @@ -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); @@ -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 ); });