@@ -83,7 +83,7 @@ describe.skip('category pages', () => {
8383 let publishedArticlePaths : string [ ] = [ ]
8484 let availableArticlePaths : string [ ] = [ ]
8585 let categoryVersions : string [ ] = [ ]
86- let categoryChildTypes : string [ ] = [ ]
86+
8787 let allowTitleToDifferFromFilename : boolean | undefined = false
8888 let indexTitle : string = ''
8989 let indexShortTitle : string = ''
@@ -101,23 +101,9 @@ describe.skip('category pages', () => {
101101 const data = parsed . data as MarkdownFrontmatter
102102 categoryVersions = getApplicableVersions ( data . versions , indexAbsPath )
103103 allowTitleToDifferFromFilename = data . allowTitleToDifferFromFilename
104- categoryChildTypes = [ ]
105104 const articleLinks = data . children . filter ( ( child ) => {
106105 const mdPath = getPath ( productDir , indexLink , child )
107-
108106 const fileExists = fs . existsSync ( mdPath )
109-
110- // We're checking each item in the category's 'children' frontmatter
111- // to see if the child is an article by tacking on `.md` to it. If
112- // that file exists it's an article, otherwise it's a map topic. A
113- // category needs to have all the same type of children so we track
114- // that here so we can test to make sure all the types are the same.
115- if ( fileExists ) {
116- categoryChildTypes . push ( 'article' )
117- } else {
118- categoryChildTypes . push ( 'mapTopic' )
119- }
120-
121107 return fileExists && fs . statSync ( mdPath ) . isFile ( )
122108 } )
123109
@@ -217,19 +203,6 @@ describe.skip('category pages', () => {
217203 } )
218204 } )
219205
220- test ( 'categories contain all the same type of children' , ( ) => {
221- let errorType = ''
222- expect (
223- categoryChildTypes . every ( ( categoryChildType ) => {
224- errorType = categoryChildType
225- return categoryChildType === categoryChildTypes [ 0 ]
226- } ) ,
227- `${ indexRelPath . replace ( 'index.md' , '' ) } contains a mix of ${ errorType } s and ${
228- categoryChildTypes [ 0 ]
229- } s, category children must be of the same type`,
230- ) . toBe ( true )
231- } )
232-
233206 test ( 'slugified title matches parent directory name' , ( ) => {
234207 if ( allowTitleToDifferFromFilename ) return
235208
0 commit comments