testing and clients are 'online' and working know to get the tests running againts an actual ES node
This commit is contained in:
7
scripts/generate_js_api/templates/time.param.tmpl
Normal file
7
scripts/generate_js_api/templates/time.param.tmpl
Normal file
@ -0,0 +1,7 @@
|
||||
if (<%= get %> instanceof Date) {
|
||||
<%= set %> = <%= get %>.getTime();
|
||||
} else if (_.isNumeric(<%= get %>)) {
|
||||
<%= set %> = <%= get %>;
|
||||
} else {
|
||||
throw new TypeError('Invalid <%= name %>: ' + <%= get %> + ' should be be some sort of time.');
|
||||
}
|
||||
Reference in New Issue
Block a user