Skip to content

Commit

Permalink
2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
j3tan committed Jul 10, 2017
1 parent 7c3b241 commit a4c6c28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dist/leche.js
Expand Up @@ -138,6 +138,12 @@ function truncatedJSONStringify(object, maxLen) {
* @private
*/
function stringifyObject(object, maxDepth) {
if (typeof object === 'undefined') {
return 'undefined';
} else if (object === null) {
return 'null';
}

var stringRepresentation = object.toString();
if (object instanceof Array && maxDepth > 0) {
return object.map(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion dist/leche.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "leche",
"author": "nzakas",
"version": "2.2.0",
"version": "2.2.1",
"description": "A JavaScript testing utility designed to work with Mocha and Sinon",
"main": "./lib/leche.js",
"repository": {
Expand Down

0 comments on commit a4c6c28

Please sign in to comment.