From 3adfd76ff952f7b63e4ae284e460a338b1c26f8c Mon Sep 17 00:00:00 2001 From: Denis Bardadym Date: Thu, 10 Dec 2015 11:41:34 +0300 Subject: [PATCH] Update assertion.js --- lib/assertion.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/assertion.js b/lib/assertion.js index 7b68aee..007a940 100644 --- a/lib/assertion.js +++ b/lib/assertion.js @@ -106,7 +106,8 @@ function PromisedAssertion(/* obj */) { /** * Make PromisedAssertion to look like promise. Delegate resolve and reject to given promise. - * + * + * @private * @returns {Promise} */ PromisedAssertion.prototype.then = function(resolve, reject) { @@ -120,6 +121,8 @@ PromisedAssertion.prototype.then = function(resolve, reject) { * All actions happen in subcontext and this method take care about negation. * Potentially we can add some more modifiers that does not depends from state of assertion. * + * @memberOf Assertion + * @static * @param {String} name Name of assertion. It will be used for defining method or getter on Assertion.prototype * @param {Function} func Function that will be called on executing assertion * @example @@ -196,6 +199,9 @@ Assertion.add = function(name, func) { /** * Add chaining getter to Assertion like .a, .which etc + * + * @memberOf Assertion + * @static * @param {string} name name of getter * @param {function} [onCall] optional function to call */ @@ -225,6 +231,8 @@ Assertion.addChain = function(name, onCall) { /** * Create alias for some `Assertion` property * + * @memberOf Assertion + * @static * @param {String} from Name of to map * @param {String} to Name of alias * @example