Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-module-version.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61b84914e216777130547f68592a15d04de4902a (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);