mirror of https://github.com/nodejs/node.git
Write write.txt into the tmpdir
parent
92c5634cbd
commit
604f4fdf8c
|
@ -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',
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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…
Reference in New Issue