/*global require, module*/
/*jslint vars:true*/
(function () {'use strict';

var jml = require('../jml'),
    testCase = require('nodeunit').testCase,
    DOMParser = require('xmldom').DOMParser,
    XMLSerializer = require('xmldom').XMLSerializer;

var xml = new DOMParser().parseFromString('<div class="test">someContent</div>', 'text/html').documentElement;


module.exports = testCase({

    // ============================================================================
    'simple div': function(test) {
    // ============================================================================
        test.expect(1);
        var expected = ['div', {'class': 'test'}, ['someContent']];
        var result = jml.toJML(xml);
        test.deepEqual(expected, result);
        test.done();
    }

});

}());

/*global require, module*/
/*jslint vars:true*/
(function () {'use strict';

var jml = require('../jml'),
    testCase = require('nodeunit').testCase,
    DOMParser = require('xmldom').DOMParser,
    XMLSerializer = require('xmldom').XMLSerializer;

var xml = new DOMParser().parseFromString('<div class="test">someContent</div>', 'text/html').documentElement;


module.exports = testCase({

    // ============================================================================
    'simple div': function(test) {
    // ============================================================================
        test.expect(1);
        var expected = ['div', {'class': 'test', 'xmlns': 'http://www.w3.org/1999/xhtml'}, ['someContent']];
        var result = jml.toJML(xml);
        test.deepEqual(expected, result);
        test.done();
    }

});

}());

add expected NS