PagerNation / Escalator-API

MIT License
3 stars 0 forks source link

add spec for cleaning db and chai setup #17

Closed paradime closed 7 years ago

paradime commented 7 years ago

fixes https://github.com/PagerNation/PagerNation/issues/66

paradime commented 7 years ago

@kwm4385 I have no idea how to fix

Ticket Model with new ticket when a ticket exists should retrieve saved tickets via list():

jarrydlee commented 7 years ago

@paradime I was able to fix the test. The problem is that the const found = _.find(...); hasn't finished by the time expect(found).to.exist; is run, so the found variable is undefined.

paradime commented 7 years ago

Rad, can you push that change?

paradime commented 7 years ago

I've rebased this branch like 4 times, please don't make me do it again

jarrydlee commented 7 years ago

:+1: