mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
11 lines
421 B
JavaScript
11 lines
421 B
JavaScript
const testConfig = require('../../test-config.json');
|
|
|
|
global.makeTestFeature = function makeTestFeature(envName) {
|
|
const config = Object.assign({}, testConfig.all, testConfig[envName]);
|
|
return function testFeature(feature, description, callback) {
|
|
if (config[feature] === false) {
|
|
return it(`Feature "${feature}" is disabled in "${envName}. "${description}"`);
|
|
}
|
|
it(description, callback);
|
|
};
|
|
};
|