testing and clients are 'online' and working know to get the tests running againts an actual ES node
This commit is contained in:
5
scripts/generate_js_api/templates/string.param.tmpl
Normal file
5
scripts/generate_js_api/templates/string.param.tmpl
Normal file
@ -0,0 +1,5 @@
|
||||
if (typeof <%= get %> !== 'object' && typeof <%= get %> !== 'undefined') {
|
||||
<%= set %> = '' + <%= get %>;
|
||||
} else {
|
||||
throw new TypeError('Invalid <%= name %>: ' + <%= get %> + ' should be a string.');
|
||||
}
|
||||
Reference in New Issue
Block a user