design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Update async tests to use chai-as-promised

Open tweettypography opened this issue 10 years ago • 5 comments

https://github.com/domenic/chai-as-promised

tweettypography avatar Jul 20 '16 23:07 tweettypography

Nice find! Looks like it doesn't work with PhantomJS in the readme.

Chai as Promised is only compatible with modern browsers (IE ≥9, Safari ≥6, no PhantomJS).

interactivellama avatar Jul 21 '16 02:07 interactivellama

How strange! Might be able to find a workaround though. Or switch away from PhantomJS, I'm not a fan of it

tweettypography avatar Jul 21 '16 02:07 tweettypography

I wouldn't complain. 😄

interactivellama avatar Jul 21 '16 02:07 interactivellama

PhantomJS uses an older version of Webkit, which may be why it doesn't support it. You can try SlimerJS, which is always within a version of the latest Gecko/Firefox release. The Slimer route is a little more complicated to set up, but you have a lot more power with it.

  • https://slimerjs.org

jwilcurt-salesforce-com avatar Jul 21 '16 14:07 jwilcurt-salesforce-com

Feel free to re-open, but I don't think any props are promises nor is any current testing being down with promises. Closing.

interactivellama avatar Jan 13 '17 00:01 interactivellama