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

12 lines
220 B
JavaScript
Raw Normal View History

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