@@ -29,7 +29,7 @@ describe('Tree unit test', () => {
2929
3030 describe ( 'Adding children' , ( ) => {
3131 let newTree = new Tree ( { } ) ;
32- let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null , null ) ;
32+ let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null ) ;
3333
3434 it ( 'should be able to add a child' , ( ) => {
3535 expect ( typeof newTree . children ) . toEqual ( 'object' ) ;
@@ -49,8 +49,8 @@ describe('Tree unit test', () => {
4949
5050 describe ( 'Adding sibling' , ( ) => {
5151 let newTree = new Tree ( { } ) ;
52- let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null , null ) ;
53- let returnSibling = returnChild . addSibling ( 'stateful' , 'child' , { } , null , null ) ;
52+ let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null ) ;
53+ let returnSibling = returnChild . addSibling ( 'stateful' , 'child' , { } , null ) ;
5454
5555 it ( 'the tree now has 2 children' , ( ) => {
5656 expect ( newTree . children . length ) . toBe ( 2 ) ;
@@ -90,8 +90,8 @@ describe('Tree unit test', () => {
9090
9191 describe ( 'Copy & clean tree' , ( ) => {
9292 let newTree = new Tree ( { } ) ;
93- let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null , null ) ;
94- let returnSibling = returnChild . addSibling ( 'stateful' , 'child' , { } , null , null ) ;
93+ let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null ) ;
94+ let returnSibling = returnChild . addSibling ( 'stateful' , 'child' , { } , null ) ;
9595 let copy = newTree . cleanTreeCopy ( ) ;
9696 it ( 'its copy has 2 children' , ( ) => {
9797 expect ( copy . children . length ) . toEqual ( 2 ) ;
0 commit comments