Fix tests

This commit is contained in:
Thomas Nordquist
2019-02-18 22:48:04 +01:00
parent 235e81826b
commit ec88f9822d

View File

@@ -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())