Commit c7f2af27 c7f2af27cbe90002abc14c1173323df8f7809641 by Mickaël Andrieu

Fixed syntax and vocabulary on comments relative to betterInstanceOf

- in modules/tester.js
- in modules/utils.js
and BTW in their documentations
1 parent b840702c
......@@ -450,7 +450,7 @@ Asserts that the provided input is of the given type::
``assertInstanceOf()``
-------------------------------------------------------------------------------
**Signature:** ``assertInstanceOf(mixed input, function constructor[, String message])``
**Signature:** ``assertInstanceOf(mixed input, Function constructor[, String message])``
Asserts that the provided input is of the given constructor::
......
......@@ -29,7 +29,7 @@ Provides a better ``typeof`` operator equivalent, eg. able to retrieve the ``Arr
**Signature:** ``betterInstanceOf(input, constructor)``
Provides a better ``instanceof`` operator equivalent, eg. able to retrieve the ``Array`` type or to deal with inheritance.
Provides a better ``instanceof`` operator equivalent, is able to retrieve the ``Array`` instance or to deal with inheritance.
.. index:: dump, Serialization, Debugging, JSON
......
......@@ -840,10 +840,10 @@ Tester.prototype.assertType = function assertType(subject, type, message) {
};
/**
* Asserts that the provided subject is of the given class.
* Asserts that the provided subject has the provided constructor in its prototype hierarchy.
*
* @param mixed subject The value to test
* @param function constructor The javascript type name
* @param Function constructor The javascript type name
* @param String message Test description
* @return Object An assertion result object
*/
......@@ -857,7 +857,7 @@ Tester.prototype.assertInstanceOf = function assertInstanceOf(subject, construct
standard: f('Subject is instance of: "%s"', constructor.name),
values: {
subject: subject,
className: constructor.name,
constructor: constructor.name,
}
});
};
......
......@@ -71,8 +71,7 @@ function betterTypeOf(input) {
exports.betterTypeOf = betterTypeOf;
/**
* Provides a better instanceof operator equivalent, able to retrieve the uninstantiated string
* or inheritance cases.
* Provides a better instanceof operator, capable of checking against the full object prototype hierarchy.
*
* @param mixed input
* @param function constructor
......