minify-html/bench/tests.js

9 lines
238 B
JavaScript
Raw Normal View History

const fs = require('fs');
const path = require('path');
const testsDir = path.join(__dirname, "tests");
module.exports = fs.readdirSync(testsDir).map(name => ({
name,
content: fs.readFileSync(path.join(testsDir, name), "utf8"),
}));