99 captureException ,
1010 captureMessage ,
1111 configureScope ,
12- Hub ,
12+ getGlobalHub ,
1313 init ,
1414 Scope ,
1515 SentryEvent ,
@@ -25,11 +25,11 @@ describe('SentryBrowser', () => {
2525 } ) ;
2626
2727 beforeEach ( ( ) => {
28- Hub . getGlobal ( ) . pushScope ( ) ;
28+ getGlobalHub ( ) . pushScope ( ) ;
2929 } ) ;
3030
3131 afterEach ( ( ) => {
32- Hub . getGlobal ( ) . popScope ( ) ;
32+ getGlobalHub ( ) . popScope ( ) ;
3333 } ) ;
3434
3535 describe ( 'getContext() / setContext()' , ( ) => {
@@ -75,7 +75,7 @@ describe('SentryBrowser', () => {
7575 } ) ;
7676
7777 it ( 'should record auto breadcrumbs' , done => {
78- Hub . getGlobal ( ) . pushScope (
78+ getGlobalHub ( ) . pushScope (
7979 new BrowserClient ( {
8080 afterSend : ( event : SentryEvent ) => {
8181 expect ( event . breadcrumbs ! ) . to . have . lengthOf ( 3 ) ;
@@ -97,7 +97,7 @@ describe('SentryBrowser', () => {
9797 addBreadcrumb ( { message : 'test2' } ) ;
9898
9999 captureMessage ( 'event' ) ;
100- Hub . getGlobal ( ) . popScope ( ) ;
100+ getGlobalHub ( ) . popScope ( ) ;
101101 } ) ;
102102 } ) ;
103103
@@ -115,7 +115,7 @@ describe('SentryBrowser', () => {
115115 } ) ;
116116
117117 it ( 'should capture an exception' , done => {
118- Hub . getGlobal ( ) . pushScope (
118+ getGlobalHub ( ) . pushScope (
119119 new BrowserClient ( {
120120 afterSend : ( event : SentryEvent ) => {
121121 expect ( event . exception ) . to . not . be . undefined ;
@@ -133,11 +133,11 @@ describe('SentryBrowser', () => {
133133 } catch ( e ) {
134134 captureException ( e ) ;
135135 }
136- Hub . getGlobal ( ) . popScope ( ) ;
136+ getGlobalHub ( ) . popScope ( ) ;
137137 } ) ;
138138
139139 it ( 'should capture a message' , done => {
140- Hub . getGlobal ( ) . pushScope (
140+ getGlobalHub ( ) . pushScope (
141141 new BrowserClient ( {
142142 afterSend : ( event : SentryEvent ) => {
143143 expect ( event . message ) . to . equal ( 'test' ) ;
@@ -148,11 +148,11 @@ describe('SentryBrowser', () => {
148148 } ) ,
149149 ) ;
150150 captureMessage ( 'test' ) ;
151- Hub . getGlobal ( ) . popScope ( ) ;
151+ getGlobalHub ( ) . popScope ( ) ;
152152 } ) ;
153153
154154 it ( 'should capture an event' , done => {
155- Hub . getGlobal ( ) . pushScope (
155+ getGlobalHub ( ) . pushScope (
156156 new BrowserClient ( {
157157 afterSend : ( event : SentryEvent ) => {
158158 expect ( event . message ) . to . equal ( 'test' ) ;
@@ -163,7 +163,7 @@ describe('SentryBrowser', () => {
163163 } ) ,
164164 ) ;
165165 captureEvent ( { message : 'test' } ) ;
166- Hub . getGlobal ( ) . popScope ( ) ;
166+ getGlobalHub ( ) . popScope ( ) ;
167167 } ) ;
168168 } ) ;
169169} ) ;
0 commit comments