[Finishes #14177231] copy properties onto spy

This commit is contained in:
Colin O'Byrne and JR Boyens
2013-07-22 14:54:43 -07:00
parent 663a58d617
commit 30aec66ce5
2 changed files with 15 additions and 1 deletions

View File

@@ -68,6 +68,10 @@ getJasmineRequireObj().base = function(j$) {
spy.and = spyStrategy;
spy.calls = callTracker;
for (prop in originalFn) {
spy[prop] = originalFn[prop];
}
return spy;
};