node/test/parallel/test-fs-read-stream-double-close.js
Ruben Bridgewater 1f85ea979c
tools: capitalize sentences
This adds the `capitalized-comments` eslint rule to verify that
actual sentences use capital letters as starting letters. It ignores
special words and all lines below 62 characters.

PR-URL: https://github.com/nodejs/node/pull/24808
Reviewed-By: Sam Ruby <rubys@intertwingly.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2018-12-10 17:07:18 +01:00

20 lines
386 B
JavaScript

'use strict';
const common = require('../common');
const fs = require('fs');
{
const s = fs.createReadStream(__filename);
s.close(common.mustCall());
s.close(common.mustCall());
}
{
const s = fs.createReadStream(__filename);
// This is a private API, but it is worth testing. close calls this
s.destroy(null, common.mustCall());
s.destroy(null, common.mustCall());
}