summaryrefslogtreecommitdiff
path: root/test/fixtures/cjs-module-wrap.js
diff options
context:
space:
mode:
authorAndrey Melikhov <amel.truelife@gmail.com>2019-05-26 15:51:36 +0300
committerRich Trott <rtrott@gmail.com>2019-07-15 20:46:56 -0700
commit6ef4d9ef116f616ccaf189e651f83184a922379c (patch)
treedfca857dc6afed91bf26adb65ef02f5e559a6726 /test/fixtures/cjs-module-wrap.js
parenta1cb14a4dc69ac2ae9eef0c4620681fada51d9f3 (diff)
downloadandroid-node-v8-6ef4d9ef116f616ccaf189e651f83184a922379c.tar.gz
android-node-v8-6ef4d9ef116f616ccaf189e651f83184a922379c.tar.bz2
android-node-v8-6ef4d9ef116f616ccaf189e651f83184a922379c.zip
module: increase code coverage of cjs loader
Add test cases to cover uncovered wrap and wrapper getters. Refs: https://coverage.nodejs.org/coverage-99268b1e996d13a0/lib/internal/modules/cjs/loader.js.html#L153 PR-URL: https://github.com/nodejs/node/pull/27898 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/fixtures/cjs-module-wrap.js')
-rw-r--r--test/fixtures/cjs-module-wrap.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/cjs-module-wrap.js b/test/fixtures/cjs-module-wrap.js
index 2e11cc1a3b..4a3114c5f1 100644
--- a/test/fixtures/cjs-module-wrap.js
+++ b/test/fixtures/cjs-module-wrap.js
@@ -1,3 +1,4 @@
+'use strict';
const assert = require('assert');
const m = require('module');