mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 10:59:59 +00:00
committing node js tests for netflix app with DIAL 2.1
This commit is contained in:
14
server/tests/js_tests/libs/utils.js
Normal file
14
server/tests/js_tests/libs/utils.js
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
function getParam(key) {
|
||||
var value;
|
||||
var args = process.argv.slice(2);
|
||||
args.forEach(function (param) {
|
||||
if(param.indexOf(key + "=") === 0) {
|
||||
value = param.split("=")[1];
|
||||
}
|
||||
});
|
||||
return value;
|
||||
}
|
||||
|
||||
module.exports.getParam = getParam;
|
||||
Reference in New Issue
Block a user