Apply this transform using jscodeshift to remove most chai-as-promised assertions.
Note: this codemod does not cover all of the
assert.eventuallycases, but they should be easy to add.
There's really no alternative to defining the function assert.isRejected. The following should approximate the functionallity from chai-as-promised.
var chai = require('chai');
chai.assert.isRejected = function isRejected(promise, expected) {