@@ -7,7 +7,6 @@ const tmp = temporaryDir();
7
7
8
8
describe ( 'CLI simple generation - big app' , ( ) => {
9
9
let stdoutString = undefined ;
10
- let clockInterfaceFile ;
11
10
let interfaceIDATAFile ;
12
11
let searchFuncFile ;
13
12
@@ -45,7 +44,6 @@ describe('CLI simple generation - big app', () => {
45
44
done ( 'error' ) ;
46
45
}
47
46
stdoutString = ls . stdout . toString ( ) ;
48
- clockInterfaceFile = read ( `${ distFolder } /interfaces/ClockInterface.html` ) ;
49
47
interfaceIDATAFile = read ( `${ distFolder } /interfaces/IDATA.html` ) ;
50
48
searchFuncFile = read ( `${ distFolder } /interfaces/SearchFunc.html` ) ;
51
49
@@ -873,34 +871,34 @@ describe('CLI simple generation - big app', () => {
873
871
} ) ;
874
872
875
873
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' ) ;
877
875
expect ( file ) . to . contain ( 'See <a href="../classes/Todo.html">Todo</a> for details' ) ;
878
876
} ) ;
879
877
880
878
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' ) ;
882
880
expect ( file ) . to . contain ( 'or link to <a href="../classes/Todo.html">Todo' ) ;
883
881
expect ( file ) . to . contain ( 'ore link to <a href="../classes/Todo.html">Todo' ) ;
884
882
} ) ;
885
883
886
884
it ( 'should support JSDoc @link for inputs' , ( ) => {
887
- let file = read ( distFolder + '/components/HeaderComponent.html' ) ;
885
+ const file = read ( distFolder + '/components/HeaderComponent.html' ) ;
888
886
expect ( file ) . to . contain ( '_fullName <a href="https://compodoc.app/">https://compodoc.app/' ) ;
889
887
} ) ;
890
888
891
889
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' ) ;
893
891
expect ( file ) . to . contain ( 'if this {@link AboutComponent.fullName} does not crash' ) ;
894
892
expect ( file ) . to . contain ( 'if this {@link undefined} does not crash' ) ;
895
893
} ) ;
896
894
897
895
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' ) ;
899
897
expect ( file ) . to . contain ( '<code>src/app/about/about.component.ts</code>' ) ;
900
898
} ) ;
901
899
902
900
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' ) ;
904
902
expect ( file ) . to . not . contain (
905
903
'<a href="components/AppComponent.html" data-type="entity-link" >AppComponent</a>'
906
904
) ;
@@ -911,4 +909,9 @@ describe('CLI simple generation - big app', () => {
911
909
'"><todomvc>The example of the component<'
912
910
) ;
913
911
} ) ;
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
+ } ) ;
914
917
} ) ;
0 commit comments