| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 71502f2 commit cb15017
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,10 +32,11 @@ for (const expectView of common.getArrayBufferViews(inputBuffer)) { | |||
| 32 | 32 | ||
| 33 | 33 | for (const expectView of common.getArrayBufferViews(inputBuffer)) { | |
| 34 | 34 | console.log('Async test for ', expectView[Symbol.toStringTag]); | |
| 35 | - fs.writeFile(filename, expectView, common.mustCall((e) => { | ||
| 35 | + const file = `${filename}-${expectView[Symbol.toStringTag]}`; | ||
| 36 | + fs.writeFile(file, expectView, common.mustCall((e) => { | ||
| 36 | 37 | assert.ifError(e); | |
| 37 | 38 | ||
| 38 | - fs.readFile(filename, 'utf8', common.mustCall((err, data) => { | ||
| 39 | + fs.readFile(file, 'utf8', common.mustCall((err, data) => { | ||
| 39 | 40 | assert.ifError(err); | |
| 40 | 41 | assert.strictEqual(data, inputBuffer.toString('utf8')); | |
| 41 | 42 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments