NTREE_DATA is a topic too

This commit is contained in:
Devin Howard 2017-08-21 20:18:33 -07:00
parent 1102218720
commit bacaf75db3
2 changed files with 11 additions and 3 deletions

View file

@ -17,9 +17,14 @@ describe('Metamaps.XMLParser.js', function() {
</element> </element>
</viewNode> </viewNode>
</View:ColumnView>` </View:ColumnView>`
{ topics, synapses } = XMLParser.parseSchema(xml) { topics, synapses } = XMLParser.parseSchema(xml)
expect(topics[0].name).to.equal("MANDT")
expect(topics[0].metacode).to.equal("Wildcard") expect(topics[0].name).to.equal("NTREE_DATA")
expect(topics[0].metacode).to.equal("Activity")
expect(topics[1].name).to.equal("MANDT")
expect(topics[1].metacode).to.equal("Wildcard")
expect(synapses.length).to.equal(0) expect(synapses.length).to.equal(0)
}) })
@ -36,8 +41,11 @@ describe('Metamaps.XMLParser.js', function() {
</viewNode> </viewNode>
</View:ColumnView>` </View:ColumnView>`
{ topics, synapses } = XMLParser.parseSchema(xml) { topics, synapses } = XMLParser.parseSchema(xml)
expect(topics[0].x).to.equal(176) expect(topics[0].x).to.equal(176)
expect(topics[0].y).to.equal(569) expect(topics[0].y).to.equal(569)
expect(topics[1].x).to.equal(176 + 20)
expect(topics[1].y).to.equal(569)
}) })
}) })
}) })

View file

@ -53,7 +53,7 @@
"simplewebrtc": "2.2.2", "simplewebrtc": "2.2.2",
"socket.io": "1.3.7", "socket.io": "1.3.7",
"webpack": "2.2.1", "webpack": "2.2.1",
"xml-parser": "^1.2.1" "xml-parser": "1.2.1"
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^7.1.1", "babel-eslint": "^7.1.1",