fastboot icon indicating copy to clipboard operation
fastboot copied to clipboard

fixed tests, now they are broken

Open bekzod opened this issue 7 years ago • 8 comments

mocha has behavior of setting test as passing if promise returned inside it(....) passing, but if you have assertion in .catch it might skip assertion because returned promise resolved, to avoid that you need finish assertion with done

because of it I think some of errors have been missed in master @kratiahuja @krisselden

bekzod avatar Jun 04 '17 10:06 bekzod

I thought mocha has the same behavior with returning promise or using done: https://mochajs.org/#working-with-promises

Also not all tests are failing when using done in a catch.

kratiahuja avatar Jun 04 '17 17:06 kratiahuja

Yes of course, i wrote some therefore :P, I think only one failing other one i think just jshint error

On 4 Jun 2017, at 22:19, Krati Ahuja [email protected] wrote:

I thought mocha has the same behavior with returning promise or using done: https://mochajs.org/#working-with-promises

Also not all tests are failing when using done in a catch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

bekzod avatar Jun 04 '17 17:06 bekzod

There are two failing. One is a jshint.

kratiahuja avatar Jun 04 '17 17:06 kratiahuja

@kratiahuja I am look at those errors, will make PR if I fix them thanks

bekzod avatar Jun 04 '17 18:06 bekzod

hurray tests fixed 🎊

bekzod avatar Jun 04 '17 19:06 bekzod

good to merge ? :P

bekzod avatar Jun 09 '17 19:06 bekzod

this probably fixes https://github.com/ember-fastboot/ember-cli-fastboot/issues/209 too

bekzod avatar Jun 11 '17 17:06 bekzod

No those are different issues. The new config was introduced later.

kratiahuja avatar Jun 11 '17 18:06 kratiahuja