From f7d9b1f737326089aaeb5623a711d23f92aea66a Mon Sep 17 00:00:00 2001 From: amazingrando Date: Fri, 1 Mar 2024 13:01:49 -0500 Subject: [PATCH] chore: replace test string --- src/util/project/installComponentFromCache.test.ts | 4 ++-- src/util/project/installGeneralAssetsFromCache.test.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 ); });