node/test/simple/test-sync-fileread.js

9 lines
215 B
JavaScript
Raw Normal View History

2010-12-03 09:03:18 +08:00
common = require('../common');
assert = common.assert;
var path = require('path');
var fs = require('fs');
2010-02-25 14:36:17 +08:00
2010-12-03 09:03:18 +08:00
var fixture = path.join(__dirname, '../fixtures/x.txt');
2010-02-25 14:36:17 +08:00
2010-12-03 09:03:18 +08:00
assert.equal('xyz\n', fs.readFileSync(fixture));