Ticket: User Report - All tests pass, but no validation code

Hi everyone,

I can’t understand why I am not getting a validation code for User Reportfor the Ticket: User Report.

All tests are passing: 

Determining test suites to run...Setup Mongo Connection
 PASS  test/user-report.test.js
  User Report
    ✓ Should return exactly twenty results (348ms)
    ✓ Should return correct comment totals (358ms)

Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        2.727s
Ran all test suites matching /user-report/i.
Teardown Mongo Connection

In trying to find out why this may be happening, I came across this thread (Read Concern Lab) discussing what appears to be the same issue. I have also declared the string "majority" for the readConcern variable.

Is there an example somewhere on how to properly structure the readConcern variable (if that indeed is the issue here)?

…so close, but yet so far away :grin:

Thanks in advance!


I have figured out why I was not getting the validation code:

My addUser() function was never (until now) implemented properly. Even though I had the correct implementation for mostActiveCommenters(), the validation code was not appearing on the status page.

If one test fails, than many of the tests that follow will have issues, even if you have the correct code/syntax, etc…