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

10 lines
241 B
JavaScript

'use strict';
var common = require('../common');
var assert = require('assert');
var path = require('path');
var fs = require('fs');
var fixture = path.join(__dirname, '../fixtures/x.txt');
assert.equal('xyz\n', fs.readFileSync(fixture));