Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Update assertion.js
Browse files Browse the repository at this point in the history
  • Loading branch information
btd committed Dec 10, 2015
1 parent e1ddec2 commit 3adfd76
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/assertion.js
Expand Up @@ -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) {
Expand All @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3adfd76

Please sign in to comment.