, / (async), expect(function() {..}.toThrow() .
, ( promises):
it('.....', function(done) {
MyPromise(...)
.then(... my normal process which should throw....)
.then(function() {
expect(true).toBe(false);
},
function(err) {
done();
});
});
, promises?
.catch(), .