aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-module-binding.js
diff options
context:
space:
mode:
authorJohn-David Dalton <john.david.dalton@gmail.com>2017-11-16 13:12:04 -0800
committerRich Trott <rtrott@gmail.com>2017-11-28 16:21:53 -0500
commitfea1e05ba5588eeedc670c5bcfff9a362874deed (patch)
treef77af347ce2babe5d3ab6669c459802583b66d8d /test/parallel/test-module-binding.js
parentecbae568b7818ef056fc3fe9cc6e5502fb9c9269 (diff)
downloadandroid-node-v8-fea1e05ba5588eeedc670c5bcfff9a362874deed.tar.gz
android-node-v8-fea1e05ba5588eeedc670c5bcfff9a362874deed.tar.bz2
android-node-v8-fea1e05ba5588eeedc670c5bcfff9a362874deed.zip
module: rename internalModuleReadFile to internalModuleReadJSON
PR-URL: https://github.com/nodejs/node/pull/17084 Fixes: https://github.com/nodejs/node/issues/17076 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-module-binding.js')
-rw-r--r--test/parallel/test-module-binding.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-module-binding.js b/test/parallel/test-module-binding.js
index f5c2a794b1..bea0c91f0c 100644
--- a/test/parallel/test-module-binding.js
+++ b/test/parallel/test-module-binding.js
@@ -1,14 +1,14 @@
'use strict';
require('../common');
const fixtures = require('../common/fixtures');
-const { internalModuleReadFile } = process.binding('fs');
+const { internalModuleReadJSON } = process.binding('fs');
const { readFileSync } = require('fs');
const { strictEqual } = require('assert');
-strictEqual(internalModuleReadFile('nosuchfile'), undefined);
-strictEqual(internalModuleReadFile(fixtures.path('empty.txt')), '');
-strictEqual(internalModuleReadFile(fixtures.path('empty-with-bom.txt')), '');
+strictEqual(internalModuleReadJSON('nosuchfile'), undefined);
+strictEqual(internalModuleReadJSON(fixtures.path('empty.txt')), '');
+strictEqual(internalModuleReadJSON(fixtures.path('empty-with-bom.txt')), '');
{
const filename = fixtures.path('require-bin/package.json');
- strictEqual(internalModuleReadFile(filename), readFileSync(filename, 'utf8'));
+ strictEqual(internalModuleReadJSON(filename), readFileSync(filename, 'utf8'));
}