diff --git a/aio/tools/transforms/angular-base-package/post-processors/auto-link-code.spec.js b/aio/tools/transforms/angular-base-package/post-processors/auto-link-code.spec.js
index 98c4e596f4..b3ab3c4db4 100644
--- a/aio/tools/transforms/angular-base-package/post-processors/auto-link-code.spec.js
+++ b/aio/tools/transforms/angular-base-package/post-processors/auto-link-code.spec.js
@@ -137,12 +137,20 @@ describe('autoLinkCode post-processor', () => {
it('should ignore documents when the `docType` is set to `member` and the keyword doesn\'t include `.`',
() => {
- aliasMap.addDoc({docType: 'class', id: 'MyClass', aliases: ['MyClass'], path: 'a/b/myclass'});
aliasMap.addDoc(
{docType: 'member', id: 'MyEnum', aliases: ['MyEnum'], path: 'a/b/c'});
- const doc = {docType: 'test-doc', renderedContent: 'MyClass
'};
+ const doc = {docType: 'test-doc', renderedContent: 'MyEnum
'};
processor.$process([doc]);
- expect(doc.renderedContent).toEqual('MyClass
');
+ expect(doc.renderedContent).toEqual('MyEnum
');
+ });
+
+ it('should insert anchors when the `docType` is set to `member` and the keyword includes `.`',
+ () => {
+ aliasMap.addDoc(
+ {docType: 'member', id: 'MyEnum', aliases: ['MyEnum.Value'], path: 'a/b/c'});
+ const doc = {docType: 'test-doc', renderedContent: 'MyEnum.Value
'};
+ processor.$process([doc]);
+ expect(doc.renderedContent).toEqual('MyEnum.Value
');
});
it('should insert anchors for individual text nodes within a code block', () => {