Added a method to myKlass.
[jquery.git] / test / unit / core.js
index 25ff1f5..4b1da51 100644 (file)
@@ -550,6 +550,8 @@ test("jQuery.extend(Object, Object)", function() {
        same( empty.foo, optionsWithDate.foo, "Dates copy correctly" );
 
        var myKlass = function() {};
+       // Makes the class a little more realistic
+       myKlass.prototype = { someMethod: function(){} };
        empty = {};
        var optionsWithCustomObject = { foo: { date: new myKlass } };
        jQuery.extend(true, empty, optionsWithCustomObject);