Skip to content

Commit ed4294c

Browse files
committed
Fix failing test as a result of #402
1 parent d44aefc commit ed4294c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/raven.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,11 +1685,11 @@ describe('Raven (public API)', function() {
16851685
assert.isTrue(wrapped.test);
16861686
});
16871687

1688-
it('should not copy prototype property when wrapping function', function() {
1688+
it('should copy prototype property when wrapping function', function() {
16891689
var func = function() {};
1690-
func.prototype.test = true;
1690+
func.prototype.test = 'foo';
16911691
var wrapped = Raven.wrap(func);
1692-
assert.isUndefined(new wrapped().test);
1692+
assert.equal(new wrapped().test, 'foo');
16931693
});
16941694

16951695
it('should return the result of a wrapped function', function() {

0 commit comments

Comments
 (0)