-describe.only('Basic use', function() {
- it('exposes root element', function() {
- var doc = smartxml.fromXML('<div></div>');
- expect(doc.root.getTagName()).to.equal('div');
+var getDocumentFromXML = function(xml) {
+ return smartxml.documentFromXML(xml);
+}
+
+var elementNodeFromParams = function(params) {
+ return smartxml.elementNodeFromXML('<' + params.tag + '></' + params.tag + '>');
+}
+
+
+describe.only('smartxml', function() {
+
+ describe('Basic use', function() {
+ it('exposes root element', function() {
+ var doc = getDocumentFromXML('<div></div>');
+ expect(doc.root.getTagName()).to.equal('div');
+ });