@@ -29,7 +29,7 @@ describe('Tree unit test', () => {
29
29
30
30
describe ( 'Adding children' , ( ) => {
31
31
let newTree = new Tree ( { } ) ;
32
- let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null , null ) ;
32
+ let returnChild = newTree . addChild ( 'stateful' , 'child' , { } , null ) ;
33
33
34
34
it ( 'should be able to add a child' , ( ) => {
35
35
expect ( typeof newTree . children ) . toEqual ( 'object' ) ;
@@ -49,8 +49,8 @@ describe('Tree unit test', () => {
49
49
50
50
describe ( 'Adding sibling' , ( ) => {
51
51
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 ) ;
54
54
55
55
it ( 'the tree now has 2 children' , ( ) => {
56
56
expect ( newTree . children . length ) . toBe ( 2 ) ;
@@ -90,8 +90,8 @@ describe('Tree unit test', () => {
90
90
91
91
describe ( 'Copy & clean tree' , ( ) => {
92
92
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 ) ;
95
95
let copy = newTree . cleanTreeCopy ( ) ;
96
96
it ( 'its copy has 2 children' , ( ) => {
97
97
expect ( copy . children . length ) . toEqual ( 2 ) ;
0 commit comments