Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing error on Unpaid Items (last test) #41

Open
maxgerber opened this issue Dec 1, 2017 · 0 comments
Open

Testing error on Unpaid Items (last test) #41

maxgerber opened this issue Dec 1, 2017 · 0 comments

Comments

@maxgerber
Copy link

screen shot 2017-12-01 at 10 59 14 am

There were a couple of issues with your last test - UnpaidItems:

  1. expected needs to be contained within an array, as that is how res returns it.
  2. You have specified in your schema that date_purchased is of type Date, not string, so making a new Date like in your previous tests is needed.
  3. in your t.equal function, actual should be the FIRST argument, and expected the second (swap 'em)
  4. use t.deepEqual to compare objects.
  5. You have a full working suite of tests 🍬
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant