Ad
  • Default User Avatar

    OK, got it now:-) Modified the random tests in TS. Thanks!

  • Custom User Avatar

    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.

  • Default User Avatar

    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?

  • Custom User Avatar

    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.

  • Default User Avatar

    AFAIK for failed tests you should have something like this expected [ 126235, 2, 0 ] to deeply equal [ 1262356, 2, 0 ].

  • Custom User Avatar

    @g964

    As usual, don't put empty string as the first arguments of describe/it.