File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
packages/integrations/test Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -239,21 +239,6 @@ describe('CaptureConsole setup', () => {
239
239
expect ( global . console . error ) . not . toBe ( originalConsole . error ) ;
240
240
} ) ;
241
241
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
-
257
242
it ( 'should wrap the console when the client does not have a registered captureconsole integration, but not capture any messages' , ( ) => {
258
243
const captureConsoleIntegration = new CaptureConsole ( { levels : [ 'log' , 'error' ] } ) ;
259
244
captureConsoleIntegration . setupOnce (
You can’t perform that action at this time.
0 commit comments