(filePath, content)
| 14 | } |
| 15 | |
| 16 | function appendFile(filePath, content) { |
| 17 | fs.appendFile(filePath, content, error => { |
| 18 | if (error) { |
| 19 | throw new Error(`${filePath}:追加${content}失败`) |
| 20 | } |
| 21 | }) |
| 22 | } |
| 23 | |
| 24 | function appendFileSync(filePath, content) { |
| 25 | fs.appendFileSync(filePath, content, error => { |
no outgoing calls
no test coverage detected