Browse Source

Fix writeFile(buffer) test

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
cf86527a28
  1. 2
      test/simple/test-fs-write-file.js

2
test/simple/test-fs-write-file.js

@ -31,7 +31,7 @@ filename2 = join(fixturesDir, 'test2.txt');
buf = new Buffer(s, 'utf8'); buf = new Buffer(s, 'utf8');
error('writing to ' + filename2); error('writing to ' + filename2);
fs.writeFile(filename2, s, function (e) { fs.writeFile(filename2, buf, function (e) {
if (e) throw e; if (e) throw e;
ncallbacks++; ncallbacks++;

Loading…
Cancel
Save