Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
OK, got it now:-) Modified the random tests in TS. Thanks!
Read the OP ;-) It's the TS version.
If you run the TS version you'll find that the whole test block for the random tests is invisible, all the tests are run silently.
Where do you see an empty string at the beginning of
describe/it
?With an intentional fault and a console.log(n) at the beginning of the function I get:
` Log:
n = 261235
expected [ 126235, 2, 0 ] to deeply equal [ 1262356, 2, 0 ]`
It doesn't seem that something is eaten. That gives the tested "n", the expected output and the "got" output. Do you want something more?
That's not the point though, the point is that empty string as the first argument of
describe
/it
eats all the stdout outputs (console.log
), which is horrible for debugging.AFAIK for failed tests you should have something like this
expected [ 126235, 2, 0 ] to deeply equal [ 1262356, 2, 0 ]
.@g964
As usual, don't put empty string as the first arguments of
describe
/it
.