node1-libxmljsmt-myh
Version:
multi-threaded libxml bindings for v8 javascript engine
23 lines (18 loc) • 671 B
JavaScript
var package = require('../package')
, libxml = require('../index');
module.exports.constants = function(assert) {
assert.ok(typeof libxml.version == 'string');
assert.equal(package.version, libxml.version);
assert.ok(typeof libxml.libxml_version == 'string');
assert.ok(typeof libxml.libxml_parser_version == 'string');
assert.ok(typeof libxml.libxml_debug_enabled == 'boolean');
assert.done();
};
module.exports.threading = function(assert) {
assert.equal(libxml.features.THREAD, true);
assert.done();
};
module.exports.memoryUsage = function(assert) {
assert.ok(typeof libxml.memoryUsage() === 'number');
assert.done();
};