@@ -219,18 +219,6 @@ describe('findCycleInView', () => {
219219 expect ( result ) . toEqual ( [ 'root1' , 'child1' , 'root1' ] ) ;
220220 } ) ;
221221
222- it ( 'should detect longer cycle' , ( ) => {
223- const view = createView ( 'view1' , 'Test View' , 'root1' , {
224- root1 : createFolder ( 'root1' , 'Root' , [ 'child1' ] ) ,
225- child1 : createFolder ( 'child1' , 'Child 1' , [ 'child2' ] ) ,
226- child2 : createFolder ( 'child2' , 'Child 2' , [ 'child3' ] ) ,
227- child3 : createFolder ( 'child3' , 'Child 3' , [ 'child1' ] ) ,
228- } ) ;
229-
230- const result = findCycleInView ( view ) ;
231- expect ( result ) . toEqual ( [ 'child1' , 'child2' , 'child3' , 'child1' ] ) ;
232- } ) ;
233-
234222 it ( 'should handle missing root entry' , ( ) => {
235223 const view = createView ( 'view1' , 'Test View' , 'nonexistent' , {
236224 root1 : createFolder ( 'root1' , 'Root' , [ 'child1' ] ) ,
@@ -259,7 +247,7 @@ describe('findCycleInView', () => {
259247 expect ( result ) . toBeNull ( ) ;
260248 } ) ;
261249
262- it ( 'should detect cycle in complex tree structure' , ( ) => {
250+ it ( 'should detect cycle in tree structure' , ( ) => {
263251 const view = createView ( 'view1' , 'Test View' , 'root1' , {
264252 root1 : createFolder ( 'root1' , 'Root' , [ 'child1' ] ) ,
265253 child1 : createFolder ( 'child1' , 'Child 1' , [ 'child2' ] ) ,
0 commit comments