summaryrefslogtreecommitdiff
path: root/test/parallel/test-module-version.js
blob: 04f011bbfacd8e3cc1aa1c856ac7f58235ea66e4 (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';
require('../common');
const assert = require('assert');

// check for existence
assert(process.config.variables.hasOwnProperty('node_module_version'));

// ensure that `node_module_version` is an Integer > 0
assert(Number.isInteger(process.config.variables.node_module_version));
assert(process.config.variables.node_module_version > 0);