4 ], function(chai, wlxml) {
8 var expect = chai.expect;
10 var nodeFromXML = function(xml) {
11 return wlxml.WLXMLElementNodeFromXML(xml);
15 describe('WLXMLDocument', function() {
17 describe('Basic wlxml element node properties', function() {
18 it('returns its class', function() {
19 var node = nodeFromXML('<header class="class.subclass"></header>');
20 expect(node.getClass()).to.equal('class.subclass');