File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -661,14 +661,17 @@ describe('DocumentationTopic', () => {
661
661
662
662
it ( 'does not render a `PrimaryContent` column when passed empty an PrimaryContent & no `ViewMore` link' , async ( ) => {
663
663
await wrapper . setProps ( { primaryContentSections : [ ] , enableMinimized : true } ) ;
664
- expect ( wrapper . findComponent ( PrimaryContent ) . exists ( ) ) . toBe ( true ) ; // ViewMore link is present
664
+ expect ( wrapper . findComponent ( ViewMore ) . exists ( ) ) . toBe ( true ) ; // ViewMore link is present
665
+ // but PrimaryContent is not rendered
666
+ expect ( wrapper . findComponent ( PrimaryContent ) . exists ( ) ) . toBe ( false ) ;
665
667
666
668
await wrapper . setProps ( {
667
669
primaryContentSections : [ ] ,
668
670
enableMinimized : true ,
669
671
hasNoExpandedDocumentation : true ,
670
672
} ) ;
671
- expect ( wrapper . findComponent ( PrimaryContent ) . exists ( ) ) . toBe ( false ) ; // no ViewMore link
673
+ expect ( wrapper . findComponent ( ViewMore ) . exists ( ) ) . toBe ( false ) ; // no ViewMore link
674
+ expect ( wrapper . findComponent ( PrimaryContent ) . exists ( ) ) . toBe ( false ) ; // no PrimaryContent either
672
675
} ) ;
673
676
674
677
it ( 'render a `PrimaryContent` column when passed empty an PrimaryContent but has otherDeclarations' , async ( ) => {
You can’t perform that action at this time.
0 commit comments