you can try to use jqUnit.assertDeepEq which allows you to compare objects.