mirror of
https://github.com/appium/appium.git
synced 2026-05-17 16:28:40 -05:00
16910858b5
sinon supports promises natively, and we are using bluebird here. promise resolution seems to go wonky when using sinon's stub `.returns(B.reject(err))`, so now we tell sinon to use _bluebird's_ promises, which makes `.rejects(err)` do the same thing except better.