All files fileUtils.js

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11    1x       732x     1x  
'use strict';
 
const fs = require( 'fs' );
 
function readJSON( fileName ) {
	// eslint-disable-next-line security/detect-non-literal-fs-filename
	return JSON.parse( fs.readFileSync( fileName, { encoding: 'utf8' } ) );
}
 
module.exports = { readJSON };