@@ -264,15 +264,6 @@ describe('RssComponent', () => {
264264 setupComponent ( [ 'html' , 'atom' , 'rss' ] , mockCollection ) ;
265265 } ) ;
266266
267- it ( 'should include "Collection" in the rel="alternate" link titles' , ( ) => {
268- const alternateTags = ( linkHeadService . addTag as jasmine . Spy ) . calls . all ( )
269- . map ( c => c . args [ 0 ] )
270- . filter ( tag => tag . rel === 'alternate' ) ;
271- for ( const tag of alternateTags ) {
272- expect ( tag . title ) . toContain ( 'Collection' ) ;
273- }
274- } ) ;
275-
276267 it ( 'should include the collection name in the rel="alternate" link titles' , ( ) => {
277268 const alternateTags = ( linkHeadService . addTag as jasmine . Spy ) . calls . all ( )
278269 . map ( c => c . args [ 0 ] )
@@ -282,29 +273,11 @@ describe('RssComponent', () => {
282273 }
283274 } ) ;
284275
285- it ( 'should not include "Community" in the rel="alternate" link titles' , ( ) => {
286- const alternateTags = ( linkHeadService . addTag as jasmine . Spy ) . calls . all ( )
287- . map ( c => c . args [ 0 ] )
288- . filter ( tag => tag . rel === 'alternate' ) ;
289- for ( const tag of alternateTags ) {
290- expect ( tag . title ) . not . toContain ( 'Community' ) ;
291- }
292- } ) ;
293-
294276 describe ( 'when scoped to a community' , ( ) => {
295277 beforeEach ( ( ) => {
296278 setupComponent ( [ 'html' , 'atom' , 'rss' ] , mockCommunity ) ;
297279 } ) ;
298280
299- it ( 'should include "Community" in the rel="alternate" link titles' , ( ) => {
300- const alternateTags = ( linkHeadService . addTag as jasmine . Spy ) . calls . all ( )
301- . map ( c => c . args [ 0 ] )
302- . filter ( tag => tag . rel === 'alternate' ) ;
303- for ( const tag of alternateTags ) {
304- expect ( tag . title ) . toContain ( 'Community' ) ;
305- }
306- } ) ;
307-
308281 it ( 'should include the community name in the rel="alternate" link titles' , ( ) => {
309282 const alternateTags = ( linkHeadService . addTag as jasmine . Spy ) . calls . all ( )
310283 . map ( c => c . args [ 0 ] )
@@ -313,15 +286,6 @@ describe('RssComponent', () => {
313286 expect ( tag . title ) . toContain ( mockCommunity . name ) ;
314287 }
315288 } ) ;
316-
317- it ( 'should not include "Collection" in the rel="alternate" link titles' , ( ) => {
318- const alternateTags = ( linkHeadService . addTag as jasmine . Spy ) . calls . all ( )
319- . map ( c => c . args [ 0 ] )
320- . filter ( tag => tag . rel === 'alternate' ) ;
321- for ( const tag of alternateTags ) {
322- expect ( tag . title ) . not . toContain ( 'Collection' ) ;
323- }
324- } ) ;
325289 } ) ;
326290 } ) ;
327291} ) ;
0 commit comments