Skip to content

Commit 7165018

Browse files
author
Luca Forstner
committed
Remove duplicate test
1 parent 9ab350e commit 7165018

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/integrations/test/captureconsole.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -239,21 +239,6 @@ describe('CaptureConsole setup', () => {
239239
expect(global.console.error).not.toBe(originalConsole.error);
240240
});
241241

242-
it('should not wrap any levels that are not members of console', () => {
243-
const captureConsoleIntegration = new CaptureConsole({ levels: ['log', 'someNonExistingLevel', 'error'] });
244-
captureConsoleIntegration.setupOnce(
245-
() => undefined,
246-
() => getMockHubWithIntegration(captureConsoleIntegration) as any,
247-
);
248-
249-
// The provided level should not be created
250-
expect(global.console['someNonExistingLevel']).toBeUndefined();
251-
252-
// Ohter levels should be wrapped as expected
253-
expect(global.console.log).not.toBe(originalConsole.log);
254-
expect(global.console.error).not.toBe(originalConsole.error);
255-
});
256-
257242
it('should wrap the console when the client does not have a registered captureconsole integration, but not capture any messages', () => {
258243
const captureConsoleIntegration = new CaptureConsole({ levels: ['log', 'error'] });
259244
captureConsoleIntegration.setupOnce(

0 commit comments

Comments
 (0)