Test XML decode

This commit is contained in:
Tom MacWright
2012-12-04 11:57:21 -05:00
parent ddd40e190e
commit 60ba29518a
+6
View File
@@ -1,4 +1,10 @@
describe('XML', function() {
describe('#decode', function() {
it('decodes xml', function() {
expect(iD.format.XML.decode('<">')).to.eql('&lt;&quot;&gt;');
});
});
describe('#rep', function() {
it('converts a node to jxon', function() {
expect(iD.format.XML.rep({ id: 'n-1', type: 'node', lat: 38, lon: -77 }))