Closed georgecrawford closed 8 years ago
Mocha tests with skip
get called with a single argument, specTitle
. If we indiscriminately pop
or shift
the arguments array to find a function, we lose this argument, and the resulting specTitle
is undefined.
Incidentally, this method seems very bound to Mocha, so we might need to move some of this logic into the Mocha adapter. But that can wait.
Tests for wdio-mocha-framework
now pass against this PR.
:+1:
Was this actually causing any problems? Don't really see the advantage of this change.