Handle string comparisons correctly with equals_
This commit is contained in:
10
src/base.js
10
src/base.js
@@ -92,6 +92,16 @@ jasmine.isArray_ = function(value) {
|
||||
return Object.prototype.toString.apply(value) === '[object Array]';
|
||||
};
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
* @private
|
||||
* @param value
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
jasmine.isString_ = function(value) {
|
||||
return Object.prototype.toString.apply(value) === '[object String]';
|
||||
};
|
||||
|
||||
/**
|
||||
* Pretty printer for expecations. Takes any object and turns it into a human-readable string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user