0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/simple/test-sync-fileread.js

9 lines
214 B
JavaScript
Raw Normal View History

common = require("../common");
assert = common.assert
var path = require('path');
var fs = require('fs');
2010-02-25 07:36:17 +01:00
var fixture = path.join(__dirname, "../fixtures/x.txt");
assert.equal("xyz\n", fs.readFileSync(fixture));