UNPKG

mammoth

Version:

Convert Word documents from docx to simple HTML and Markdown

12 lines (8 loc) 266 B
var path = require("path"); var root = path.dirname(__dirname); module.exports = function(testModule) { var tests = testModule.exports[path.relative(root, testModule.filename)] = {}; return function(name, func) { tests[name] = func; }; };