Skip to content

Commit ee03106

Browse files
Samuel  TranSamuel  Tran
authored andcommitted
Fixed travis CI build error for tree test r/t non matching arguments expected after previous deletions in main tree.ts code r/t recoil.js
1 parent 3f1d2de commit ee03106

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/__tests__/tree.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)