(p, content, opts)
| 1138 | } |
| 1139 | } |
| 1140 | async writeFilePromise(p, content, opts) { |
| 1141 | return await new Promise((resolve, reject) => { |
| 1142 | const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p; |
| 1143 | if (opts) { |
| 1144 | this.realFs.writeFile(fsNativePath, content, opts, this.makeCallback(resolve, reject)); |
| 1145 | } else { |
| 1146 | this.realFs.writeFile(fsNativePath, content, this.makeCallback(resolve, reject)); |
| 1147 | } |
| 1148 | }); |
| 1149 | } |
| 1150 | writeFileSync(p, content, opts) { |
| 1151 | const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p; |
| 1152 | if (opts) { |
no test coverage detected