Browse Source

Write write.txt into the tmpdir

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
604f4fdf8c
  1. 2
      test/simple/test-file-write-stream.js
  2. 2
      test/simple/test-fs-write-buffer.js
  3. 2
      test/simple/test-fs-write-stream.js
  4. 2
      test/simple/test-fs-write-sync.js
  5. 2
      test/simple/test-fs-write.js

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

@ -4,7 +4,7 @@ assert = common.assert
var
path = require('path'),
fs = require('fs'),
fn = path.join(common.fixturesDir, "write.txt"),
fn = path.join(common.tmpDir, "write.txt"),
file = fs.createWriteStream(fn),
EXPECTED = '012345678910',

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

@ -3,7 +3,7 @@ assert = common.assert
var path = require('path'),
Buffer = require('buffer').Buffer,
fs = require('fs'),
filename = path.join(common.fixturesDir, 'write.txt'),
filename = path.join(common.tmpDir, 'write.txt'),
expected = new Buffer('hello'),
openCalled = 0,
writeCalled = 0;

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

@ -4,7 +4,7 @@ assert = common.assert
var path = require('path'),
fs = require('fs');
var file = path.join(common.fixturesDir, "write.txt");
var file = path.join(common.tmpDir, "write.txt");
(function() {
var stream = fs.WriteStream(file),

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

@ -3,7 +3,7 @@ assert = common.assert
path = require('path'),
Buffer = require('buffer').Buffer
fs = require('fs')
fn = path.join(common.fixturesDir, 'write.txt');
fn = path.join(common.tmpDir, 'write.txt');
foo = 'foo'

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

@ -3,7 +3,7 @@ assert = common.assert
var path = require('path');
var Buffer = require('buffer').Buffer;
var fs = require('fs');
var fn = path.join(common.fixturesDir, "write.txt");
var fn = path.join(common.tmpDir, "write.txt");
var expected = "ümlaut.";
var found;

Loading…
Cancel
Save