We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d44aefc commit ed4294cCopy full SHA for ed4294c
test/raven.test.js
@@ -1685,11 +1685,11 @@ describe('Raven (public API)', function() {
1685
assert.isTrue(wrapped.test);
1686
});
1687
1688
- it('should not copy prototype property when wrapping function', function() {
+ it('should copy prototype property when wrapping function', function() {
1689
var func = function() {};
1690
- func.prototype.test = true;
+ func.prototype.test = 'foo';
1691
var wrapped = Raven.wrap(func);
1692
- assert.isUndefined(new wrapped().test);
+ assert.equal(new wrapped().test, 'foo');
1693
1694
1695
it('should return the result of a wrapped function', function() {
0 commit comments