@@ -7,7 +7,6 @@ const tmp = temporaryDir();
77
88describe ( 'CLI simple generation - big app' , ( ) => {
99 let stdoutString = undefined ;
10- let clockInterfaceFile ;
1110 let interfaceIDATAFile ;
1211 let searchFuncFile ;
1312
@@ -45,7 +44,6 @@ describe('CLI simple generation - big app', () => {
4544 done ( 'error' ) ;
4645 }
4746 stdoutString = ls . stdout . toString ( ) ;
48- clockInterfaceFile = read ( `${ distFolder } /interfaces/ClockInterface.html` ) ;
4947 interfaceIDATAFile = read ( `${ distFolder } /interfaces/IDATA.html` ) ;
5048 searchFuncFile = read ( `${ distFolder } /interfaces/SearchFunc.html` ) ;
5149
@@ -873,34 +871,34 @@ describe('CLI simple generation - big app', () => {
873871 } ) ;
874872
875873 it ( 'should support JSDoc @link in JSDoc @see tag' , ( ) => {
876- let file = read ( distFolder + '/injectables/TodoStore.html' ) ;
874+ const file = read ( distFolder + '/injectables/TodoStore.html' ) ;
877875 expect ( file ) . to . contain ( 'See <a href="../classes/Todo.html">Todo</a> for details' ) ;
878876 } ) ;
879877
880878 it ( 'should support JSDoc @link for setters and getters' , ( ) => {
881- let file = read ( distFolder + '/injectables/TodoStore.html' ) ;
879+ const file = read ( distFolder + '/injectables/TodoStore.html' ) ;
882880 expect ( file ) . to . contain ( 'or link to <a href="../classes/Todo.html">Todo' ) ;
883881 expect ( file ) . to . contain ( 'ore link to <a href="../classes/Todo.html">Todo' ) ;
884882 } ) ;
885883
886884 it ( 'should support JSDoc @link for inputs' , ( ) => {
887- let file = read ( distFolder + '/components/HeaderComponent.html' ) ;
885+ const file = read ( distFolder + '/components/HeaderComponent.html' ) ;
888886 expect ( file ) . to . contain ( '_fullName <a href="https://compodoc.app/">https://compodoc.app/' ) ;
889887 } ) ;
890888
891889 it ( 'should not crash with invalid JSDoc @link tags' , ( ) => {
892- let file = read ( distFolder + '/components/AboutComponent.html' ) ;
890+ const file = read ( distFolder + '/components/AboutComponent.html' ) ;
893891 expect ( file ) . to . contain ( 'if this {@link AboutComponent.fullName} does not crash' ) ;
894892 expect ( file ) . to . contain ( 'if this {@link undefined} does not crash' ) ;
895893 } ) ;
896894
897895 it ( 'should support multiple decorators for component for example' , ( ) => {
898- let file = read ( distFolder + '/components/AboutComponent.html' ) ;
896+ const file = read ( distFolder + '/components/AboutComponent.html' ) ;
899897 expect ( file ) . to . contain ( '<code>src/app/about/about.component.ts</code>' ) ;
900898 } ) ;
901899
902900 it ( 'should not have bootstraped component in components menu entry' , ( ) => {
903- let file = read ( distFolder + '/js/menu-wc.js' ) ;
901+ const file = read ( distFolder + '/js/menu-wc.js' ) ;
904902 expect ( file ) . to . not . contain (
905903 '<a href="components/AppComponent.html" data-type="entity-link" >AppComponent</a>'
906904 ) ;
@@ -911,4 +909,9 @@ describe('CLI simple generation - big app', () => {
911909 '"><todomvc>The example of the component<'
912910 ) ;
913911 } ) ;
912+
913+ it ( 'should support double layer spread for modules' , ( ) => {
914+ const file = read ( distFolder + '/modules/HeaderModule.html' ) ;
915+ expect ( file ) . to . contain ( 'href="../components/HeaderComponent.html">HeaderComponent' ) ;
916+ } ) ;
914917} ) ;
0 commit comments