src/index.spec.js
function expectedFile(file) {
  const filePath = path.resolve(__dirname, 'expected', file);
  return new File({
    path: filePath,
    cwd: __dirname,
    base: path.resolve(__dirname, 'expected', path.dirname(file)),
    contents: fs.readFileSync(filePath)
  });
}
function expectedFile(file) {
  const filePath = path.resolve(__dirname, 'expected', file);
  return new File({
    path: filePath,
    cwd: __dirname,
    base: path.resolve(__dirname, 'expected', path.dirname(file)),
    contents: fs.readFileSync(filePath)
  });
}
function expectedFile ( file ) { const filePath = path . resolve ( __dirname , 'expected' , file ) ; return new File ( { path : filePath , cwd : __dirname , base : path . resolve ( __dirname , 'expected' , path . dirname ( file ) ) , contents : fs . readFileSync ( filePath ) } ) ; }
get expected file
get expected file