There was an error while loading. Please reload this page.
1 parent 474b5e1 commit 10df8b2Copy full SHA for 10df8b2
1 file changed
lib/command/workers/runTests.js
@@ -145,7 +145,15 @@ function initializeListeners() {
145
146
if (step.args) {
147
for (const arg of step.args) {
148
- arg && arg.$_root ? _args.push(JSON.stringify(arg).slice(0, 300)) : _args.push(arg);
+ // check if arg is a JOI object
149
+ if (arg && arg.$_root) {
150
+ _args.push(JSON.stringify(arg).slice(0, 300));
151
+ // check if arg is a function
152
+ } else if (arg && typeof arg === 'function') {
153
+ _args.push(arg.name);
154
+ } else {
155
+ _args.push(arg);
156
+ }
157
}
158
159
0 commit comments