You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…e for-of
I got numbers in test/coverage.js (percent, sloc & hits) by first adding
another for-in loop into partial.js below the existing one:
for (var o in j) {
++l;
}
When the test worked and 100% code coverage was achieved, the loop was
changed to for (var o of j)
HCanber
pushed a commit
to HCanber/lab
that referenced
this issue
Oct 26, 2015
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm getting the error Unexpected token var for this code when running with
-c
flag:In file
test.js
:In file
fail.js
If declaration of
action
is moved outside the for-loop it worksLooks like
&& node.parent.type !== 'ForOfStatement'
needs to be added to https://github.com/hapijs/lab/blob/master/lib/coverage.js#L165 to get:Found in lab version 6.2.0
The text was updated successfully, but these errors were encountered: