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:: ...@@ -450,7 +450,7 @@ Asserts that the provided input is of the given type::
450 ``assertInstanceOf()`` 450 ``assertInstanceOf()``
451 ------------------------------------------------------------------------------- 451 -------------------------------------------------------------------------------
452 452
453 **Signature:** ``assertInstanceOf(mixed input, function constructor[, String message])`` 453 **Signature:** ``assertInstanceOf(mixed input, Function constructor[, String message])``
454 454
455 Asserts that the provided input is of the given constructor:: 455 Asserts that the provided input is of the given constructor::
456 456
......
...@@ -29,7 +29,7 @@ Provides a better ``typeof`` operator equivalent, eg. able to retrieve the ``Arr ...@@ -29,7 +29,7 @@ Provides a better ``typeof`` operator equivalent, eg. able to retrieve the ``Arr
29 29
30 **Signature:** ``betterInstanceOf(input, constructor)`` 30 **Signature:** ``betterInstanceOf(input, constructor)``
31 31
32 Provides a better ``instanceof`` operator equivalent, eg. able to retrieve the ``Array`` type or to deal with inheritance. 32 Provides a better ``instanceof`` operator equivalent, is able to retrieve the ``Array`` instance or to deal with inheritance.
33 33
34 .. index:: dump, Serialization, Debugging, JSON 34 .. index:: dump, Serialization, Debugging, JSON
35 35
......
...@@ -840,10 +840,10 @@ Tester.prototype.assertType = function assertType(subject, type, message) { ...@@ -840,10 +840,10 @@ Tester.prototype.assertType = function assertType(subject, type, message) {
840 }; 840 };
841 841
842 /** 842 /**
843 * Asserts that the provided subject is of the given class. 843 * Asserts that the provided subject has the provided constructor in its prototype hierarchy.
844 * 844 *
845 * @param mixed subject The value to test 845 * @param mixed subject The value to test
846 * @param function constructor The javascript type name 846 * @param Function constructor The javascript type name
847 * @param String message Test description 847 * @param String message Test description
848 * @return Object An assertion result object 848 * @return Object An assertion result object
849 */ 849 */
...@@ -857,7 +857,7 @@ Tester.prototype.assertInstanceOf = function assertInstanceOf(subject, construct ...@@ -857,7 +857,7 @@ Tester.prototype.assertInstanceOf = function assertInstanceOf(subject, construct
857 standard: f('Subject is instance of: "%s"', constructor.name), 857 standard: f('Subject is instance of: "%s"', constructor.name),
858 values: { 858 values: {
859 subject: subject, 859 subject: subject,
860 className: constructor.name, 860 constructor: constructor.name,
861 } 861 }
862 }); 862 });
863 }; 863 };
......
...@@ -71,8 +71,7 @@ function betterTypeOf(input) { ...@@ -71,8 +71,7 @@ function betterTypeOf(input) {
71 exports.betterTypeOf = betterTypeOf; 71 exports.betterTypeOf = betterTypeOf;
72 72
73 /** 73 /**
74 * Provides a better instanceof operator equivalent, able to retrieve the uninstantiated string 74 * Provides a better instanceof operator, capable of checking against the full object prototype hierarchy.
75 * or inheritance cases.
76 * 75 *
77 * @param mixed input 76 * @param mixed input
78 * @param function constructor 77 * @param function constructor
......