pub fn rejects_promise( block: &Promise, error: Option<&Object>, message: Option<&JsString>, ) -> Promise