Skip to content

Commit d264194

Browse files
committed
Backfill another test
1 parent 381a427 commit d264194

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/raven.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,13 @@ describe('globals', function() {
691691
processException('TypeError', '', 'http://example.com', []);
692692
assert.isTrue(window.send.called);
693693
});
694+
695+
it('should not blow up with `undefined` message', function() {
696+
this.sinon.stub(window, 'send');
697+
698+
processException('TypeError', undefined, 'http://example.com', []);
699+
assert.isTrue(window.send.called);
700+
});
694701
});
695702

696703
describe('send', function() {

0 commit comments

Comments
 (0)