From ec88f9822d2f38b29947c95c88b85b003957c2cd Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Mon, 18 Feb 2019 22:48:04 +0100 Subject: [PATCH] Fix tests --- backend/src/Model/spec/TreeNode.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/Model/spec/TreeNode.spec.ts b/backend/src/Model/spec/TreeNode.spec.ts index 6db49fb..05d1cb9 100644 --- a/backend/src/Model/spec/TreeNode.spec.ts +++ b/backend/src/Model/spec/TreeNode.spec.ts @@ -43,10 +43,10 @@ describe('TreeNode', () => { it('updateWithNode should add nodes to the tree', () => { const topics1 = 'foo/bar'.split('/') - const leaf1 = TreeNodeFactory.fromEdgesAndValue(topics1, undefined) + const leaf1 = TreeNodeFactory.fromEdgesAndValue(topics1, 'foo') const topics2 = 'foo/bar/baz'.split('/') - const leaf2 = TreeNodeFactory.fromEdgesAndValue(topics2, undefined) + const leaf2 = TreeNodeFactory.fromEdgesAndValue(topics2, 'bar') leaf1.firstNode().updateWithNode(leaf2.firstNode())