Skip to content

Commit

Permalink
tests ~ refactor - rename module_ => mod
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Aug 1, 2022
1 parent 558cf81 commit 7a830db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const spawn = require('cross-spawn');
// ? change to package.main?
const modulePath = '../build/lab/src/mod.cjs.js';
// eslint-disable-next-line security/detect-non-literal-require , security-node/detect-non-literal-require-calls
const module_ = require(modulePath);
const mod = require(modulePath);

const vNodeJS = process.versions.node.split('.');
const vNodeJSMajor = +vNodeJS[0];
Expand All @@ -35,11 +35,11 @@ const settledSupportForESMs =
test('api', (t) => {
const api = ['home', 'temp'];

t.is(typeof module_, 'function');
t.deepEqual(Object.keys(module_).sort(), api.sort());
t.is(typeof mod, 'function');
t.deepEqual(Object.keys(mod).sort(), api.sort());
api.forEach((key) => {
// eslint-disable-next-line security/detect-object-injection
t.is(typeof module_[key], 'function');
t.is(typeof mod[key], 'function');
});
});

Expand Down

0 comments on commit 7a830db

Please sign in to comment.