(filePath, done)
| 6 | var path = require('path'); |
| 7 | |
| 8 | function readFile(filePath, done) { |
| 9 | fs.readFile(path.resolve(filePath), 'utf8', function(err, contents) { |
| 10 | if (err) { |
| 11 | throw err; |
| 12 | } |
| 13 | done(contents); |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | function writeFile(filePath, contents, done) { |
| 18 | fs.writeFile(path.resolve(filePath), contents, function(err) { |
no outgoing calls
no test coverage detected