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 40dd577 commit d8df8dcCopy full SHA for d8df8dc
test/raven.test.js
@@ -1594,6 +1594,18 @@ describe('Raven (public API)', function() {
1594
Raven.captureMessage('lol');
1595
assert.equal(Raven.lastEventId(), 'abc123');
1596
});
1597
+
1598
+ it('should respect `ignoreErrors`', function() {
1599
+ this.sinon.stub(window, 'send');
1600
1601
+ globalOptions.ignoreErrors = joinRegExp(['e1', 'e2']);
1602
+ Raven.captureMessage('e1');
1603
+ assert.isFalse(window.send.called);
1604
+ Raven.captureMessage('e2');
1605
1606
+ Raven.captureMessage('Non-ignored error');
1607
+ assert.isTrue(window.send.calledOnce);
1608
+ });
1609
1610
1611
describe('.captureException', function() {
0 commit comments