diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/utils/index.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/utils/index.ts index 95e6022e3a..57c84ea4bf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/utils/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/utils/index.ts @@ -49,5 +49,3 @@ export const getUmbracoFieldSnippet = (field: string, defaultValue: string | nul return value; }; - -export * from './parent-path-from-server-path.function.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/utils/parent-path-from-server-path.function.test.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/utils/parent-path-from-server-path.function.test.ts deleted file mode 100644 index 6adcd962cf..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/utils/parent-path-from-server-path.function.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { expect } from '@open-wc/testing'; -import { getParentPathFromServerPath } from './parent-path-from-server-path.function.js'; - -describe('parent-path-from-server-path', () => { - it('it returns the parent path of a nested server path', () => { - const path = 'Folder A/Folder AA/Folder AAA'; - const expectedParentPath = 'Folder A/Folder AA'; - expect(getParentPathFromServerPath(path)).to.equal(expectedParentPath); - }); - - it('it returns null of a root server path', () => { - const path = 'Folder A'; - expect(getParentPathFromServerPath(path)).to.be.null; - }); -}); diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/utils/parent-path-from-server-path.function.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/utils/parent-path-from-server-path.function.ts deleted file mode 100644 index 3930a27324..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/utils/parent-path-from-server-path.function.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const getParentPathFromServerPath = (serverPath: string): string | null => { - const parentPath = serverPath.substring(0, serverPath.lastIndexOf('/')); - return parentPath || null; -};