UNPKG

cucumber

Version:

The official JavaScript implementation of Cucumber.

18 lines (15 loc) 418 B
function FeatureSourceLoader(featureFilePaths) { var fs = require('fs'); var self = { getSources: function getSources() { var sources = []; featureFilePaths.forEach(function (featureFilePath) { var source = fs.readFileSync(featureFilePath); sources.push([featureFilePath, source]); }); return sources; } }; return self; } module.exports = FeatureSourceLoader;