(filePath, content)
| 6 | } |
| 7 | |
| 8 | function writeFile(filePath, content) { |
| 9 | fs.writeFile(filePath, content, error => { |
| 10 | if (error) { |
| 11 | throw new Error(`${filePath}:写入${content}失败`) |
| 12 | } |
| 13 | }) |
| 14 | } |
| 15 | |
| 16 | function appendFile(filePath, content) { |
| 17 | fs.appendFile(filePath, content, error => { |
no outgoing calls
no test coverage detected