nx/packages/angular/src/utils/cli-config-utils.spec.ts
Colum Ferry 14dd8e1e27
feat(angular): move replaceAppNameWithPath to Angular (#15493)
Co-authored-by: Michael Ziluck <michael@ziluck.com>
2023-03-08 18:28:14 -05:00

18 lines
606 B
TypeScript

import { replaceAppNameWithPath } from './cli-config-utils';
describe('replaceAppNameWithPath', () => {
it('when node is `application` and appName is `app` still returns the node', () => {
const node = 'application';
const appName = 'app';
const root = 'apps/app';
expect(replaceAppNameWithPath(node, appName, root)).toEqual(node);
});
it('when node is `library` and appName is `lib` still returns the node', () => {
const node = 'library';
const appName = 'lib';
const root = 'libs/lib';
expect(replaceAppNameWithPath(node, appName, root)).toEqual(node);
});
});