Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-fs-read-file-sync.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45d08f40111f78d267c07647f1d68808d3e97574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
const common = require('../common');
const assert = require('assert');
const path = require('path');
const fs = require('fs');

const fn = path.join(common.fixturesDir, 'elipses.txt');

const s = fs.readFileSync(fn, 'utf8');
for (let i = 0; i < s.length; i++) {
  assert.strictEqual('\u2026', s[i]);
}
assert.strictEqual(10000, s.length);