Skip to content

Commit c5fe0d9

Browse files
committed
test
1 parent b1a57b1 commit c5fe0d9

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

packages/core/test/lib/integrations/inboundfilters.test.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,17 @@ const RESIZEOBSERVER_EVENT: Event = {
198198
},
199199
};
200200

201+
const GOOGLETAG_EVENT: Event = {
202+
exception: {
203+
values: [
204+
{
205+
type: 'TypeError',
206+
value: 'Cannot redefine property: googletag',
207+
},
208+
],
209+
},
210+
};
211+
201212
const MALFORMED_EVENT: Event = {
202213
exception: {
203214
values: [
@@ -299,16 +310,21 @@ describe('InboundFilters', () => {
299310
expect(eventProcessor(EXCEPTION_EVENT, {})).toBe(null);
300311
});
301312

302-
it('uses default filters', () => {
313+
it('uses default filters (script error)', () => {
303314
const eventProcessor = createInboundFiltersEventProcessor();
304315
expect(eventProcessor(SCRIPT_ERROR_EVENT, {})).toBe(null);
305316
});
306317

307-
it('uses default filters ResizeObserver', () => {
318+
it('uses default filters (ResizeObserver)', () => {
308319
const eventProcessor = createInboundFiltersEventProcessor();
309320
expect(eventProcessor(RESIZEOBSERVER_EVENT, {})).toBe(null);
310321
});
311322

323+
it('uses default filters (googletag)', () => {
324+
const eventProcessor = createInboundFiltersEventProcessor();
325+
expect(eventProcessor(GOOGLETAG_EVENT, {})).toBe(null);
326+
});
327+
312328
it('filters on last exception when multiple present', () => {
313329
const eventProcessor = createInboundFiltersEventProcessor({
314330
ignoreErrors: ['incorrect type given for parameter `chewToy`'],

0 commit comments

Comments
 (0)