* @param {string} file * @param {string} [encoding='utf8'] * @private * @returns {string}
(file, encoding = 'utf8')
| 209 | * @returns {string} |
| 210 | */ |
| 211 | function getFileContents(file, encoding = 'utf8') { |
| 212 | if (!file) assert.fail('No files were opened, please use seeFile action') |
| 213 | if (encoding === '') assert.fail('Encoding is an empty string, please set a valid encoding') |
| 214 | return fs.readFileSync(file, encoding) |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * @param {string} file |
no test coverage detected