@@ -205,19 +205,36 @@ describe('DocumentationTopic', () => {
205205 expect ( main . attributes ( 'tabindex' ) ) . toBe ( '0' ) ;
206206 } ) ;
207207
208- it ( 'renders a `DocumentationHero`' , ( ) => {
208+ it ( 'renders a `DocumentationHero`, enabled ' , ( ) => {
209209 const hero = wrapper . find ( DocumentationHero ) ;
210210 expect ( hero . exists ( ) ) . toBe ( true ) ;
211- expect ( hero . props ( ) ) . toEqual ( { type : propsData . symbolKind } ) ;
211+ expect ( hero . props ( ) ) . toEqual ( { type : propsData . symbolKind , enhanceBackground : true } ) ;
212212 } ) ;
213213
214- it ( 'renders a `DocumentationHero`, with a the `role`, if no symbolKind' , ( ) => {
214+ it ( 'renders a `DocumentationHero`, enabled, with a the `role`, if no symbolKind' , ( ) => {
215215 wrapper . setProps ( {
216216 role : TopicTypes . article ,
217217 symbolKind : '' ,
218218 } ) ;
219219 const hero = wrapper . find ( DocumentationHero ) ;
220- expect ( hero . props ( ) ) . toEqual ( { type : TopicTypes . article } ) ;
220+ expect ( hero . props ( ) ) . toEqual ( { type : TopicTypes . article , enhanceBackground : true } ) ;
221+ } ) ;
222+
223+ it ( 'render a `DocumentationHero`, enabled, if top-level technology page' , ( ) => {
224+ wrapper . setProps ( {
225+ role : TopicTypes . collection ,
226+ symbolKind : 'module' ,
227+ } ) ;
228+ const hero = wrapper . find ( DocumentationHero ) ;
229+ expect ( hero . props ( ) ) . toEqual ( { type : TopicTypes . module , enhanceBackground : true } ) ;
230+ } ) ;
231+
232+ it ( 'render a `DocumentationHero`, disabled, if symbol page' , ( ) => {
233+ wrapper . setProps ( {
234+ symbolKind : 'protocol' ,
235+ } ) ;
236+ const hero = wrapper . find ( DocumentationHero ) ;
237+ expect ( hero . props ( ) ) . toEqual ( { type : TopicTypes . protocol , enhanceBackground : false } ) ;
221238 } ) ;
222239
223240 it ( 'renders a `Title`' , ( ) => {
0 commit comments