node/test/simple/test-fs-readfile-empty.js

11 lines
181 B
JavaScript
Raw Normal View History

2010-05-14 03:42:17 +08:00
require('../common');
var
path = require('path'),
fs = require('fs'),
fn = path.join(fixturesDir, 'empty.txt');
fs.readFile(fn, function(err, data) {
assert.ok(data);
});