{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/qunit/issues/793","labels_url":"https://api.github.com/repos/jquery/qunit/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/jquery/qunit/issues/793/comments","events_url":"https://api.github.com/repos/jquery/qunit/issues/793/events","html_url":"https://github.com/jquery/qunit/issues/793","id":63399439,"number":793,"title":"Diff is not shown even when two objects are different","user":{"login":"shivamdixit","id":3061095,"avatar_url":"https://avatars.githubusercontent.com/u/3061095?v=3","gravatar_id":"","url":"https://api.github.com/users/shivamdixit","html_url":"https://github.com/shivamdixit","followers_url":"https://api.github.com/users/shivamdixit/followers","following_url":"https://api.github.com/users/shivamdixit/following{/other_user}","gists_url":"https://api.github.com/users/shivamdixit/gists{/gist_id}","starred_url":"https://api.github.com/users/shivamdixit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivamdixit/subscriptions","organizations_url":"https://api.github.com/users/shivamdixit/orgs","repos_url":"https://api.github.com/users/shivamdixit/repos","events_url":"https://api.github.com/users/shivamdixit/events{/privacy}","received_events_url":"https://api.github.com/users/shivamdixit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-21T12:29:18Z","updated_at":"2015-03-21T22:17:35Z","closed_at":null,"body":"For the following deepEqual comparison, no diff is displayed. Is this an expected behavior?\r\n\r\n```javascript\r\nassert.deepEqual(\r\n    {\r\n        d: {\r\n            c: {\r\n                g: {\r\n                    j: {\r\n                        k: {\r\n                            n: {\r\n                                r: \"s\",\r\n                                s: [ 1, 2, 3, 4 ],\r\n                                t: undefined,\r\n                                u: 1,\r\n                                v: {\r\n                                    w: {\r\n                                        x: {\r\n                                            y: \"Hola!\",\r\n                                            z: \"1\"\r\n                                        }\r\n                                    }\r\n                                }\r\n                            },\r\n                            q: [],\r\n                            p: 1 / 0,\r\n                            o: 99\r\n                        },\r\n                        l: undefined,\r\n                        m: null\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    },\r\n    {\r\n        d: {\r\n            c: {\r\n                g: {\r\n                    j: {\r\n                        k: {\r\n                            n: {\r\n                                r: \"p\",\r\n                                t: undefined,\r\n                                u: 0,\r\n                                s: [ 1, 2, 3 ],\r\n                                v: {\r\n                                    w: {\r\n                                        x: {\r\n                                            z: null,\r\n                                            y: \"Yahoo!\"\r\n                                        }\r\n                                    }\r\n                                }\r\n                            },\r\n                            o: 99,\r\n                            p: 1 / 0,\r\n                            q: []\r\n                        },\r\n                        l: undefined,\r\n                        m: null\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n, true);\r\n```\r\n\r\nOutput:\r\n![qunit](https://cloud.githubusercontent.com/assets/3061095/6765017/f0e86d3c-cff3-11e4-8285-375999f2f9aa.png)\r\n\r\nDiff is also not show in various other complex object assertions too."},"comment":{"url":"https://api.github.com/repos/jquery/qunit/issues/comments/84462097","html_url":"https://github.com/jquery/qunit/issues/793#issuecomment-84462097","issue_url":"https://api.github.com/repos/jquery/qunit/issues/793","id":84462097,"user":{"login":"gauravmittal1995","id":6555434,"avatar_url":"https://avatars.githubusercontent.com/u/6555434?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravmittal1995","html_url":"https://github.com/gauravmittal1995","followers_url":"https://api.github.com/users/gauravmittal1995/followers","following_url":"https://api.github.com/users/gauravmittal1995/following{/other_user}","gists_url":"https://api.github.com/users/gauravmittal1995/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravmittal1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravmittal1995/subscriptions","organizations_url":"https://api.github.com/users/gauravmittal1995/orgs","repos_url":"https://api.github.com/users/gauravmittal1995/repos","events_url":"https://api.github.com/users/gauravmittal1995/events{/privacy}","received_events_url":"https://api.github.com/users/gauravmittal1995/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T22:17:35Z","updated_at":"2015-03-21T22:17:35Z","body":"I think that this is because https://github.com/jquery/qunit/blob/master/src/dump.js#L163#L165. Here since your dept at which the difference is seen is more than the default MaxDepth(5) , It gives [Object object]. Also here the diff is not seen because even though its different (and that's why it gives an error), the displayed text is essentially the same(i.e object Object). If you change the MaxDepth (https://github.com/jquery/qunit/blob/master/src/dump.js#L130) to 7 or 8, it will show a diff."}}