diff --git a/projects/core/src/internal/utils/audit-logs.test.ts b/projects/core/src/internal/utils/audit-logs.test.ts index ed25ac606..28f58e9cd 100644 --- a/projects/core/src/internal/utils/audit-logs.test.ts +++ b/projects/core/src/internal/utils/audit-logs.test.ts @@ -6,6 +6,7 @@ import { DOCS_LOG_URL, getCrossShadowRootAnchorWarning, getDuplicatePackageGlobalVersionWarning, + getDuplicatePackageVersionWarning, getExcessiveInstanceLimitWarning, getIdMatchNotFoundWarning, getInvalidParentWarning, @@ -61,6 +62,14 @@ describe('getCrossShadowRootAnchorWarning', () => { }); }); +describe('getDuplicatePackageVersionWarning', () => { + it('should return warning message for a duplicate localName package version', () => { + expect(getDuplicatePackageVersionWarning('nve-button', '1.2.3')).toBe( + `@nve: Element nve-button version 1.2.3 already defined, please check for duplicate package versions. ${DOCS_LOG_URL}#duplicate-package-version` + ); + }); +}); + describe('getDuplicatePackageGlobalVersionWarning', () => { it('should return warning message for duplicate package version', () => { expect(getDuplicatePackageGlobalVersionWarning()).toBe(