@@ -1013,7 +1013,7 @@ describe('globals', function() {
10131013 maxMessageLength : 100 ,
10141014 release : 'abc123' ,
10151015 } ;
1016- Raven . _globalServer = 'http://localhost/store/' ;
1016+ Raven . _globalEndpoint = 'http://localhost/store/' ;
10171017 Raven . _globalOptions = globalOptions ;
10181018
10191019 Raven . _send ( { message : 'bar' } ) ;
@@ -1226,7 +1226,7 @@ describe('globals', function() {
12261226
12271227 it ( 'should populate crossOrigin based on options' , function ( ) {
12281228 Raven . _makeImageRequest ( {
1229- url : Raven . _globalServer ,
1229+ url : Raven . _globalEndpoint ,
12301230 auth : { lol : '1' } ,
12311231 data : { foo : 'bar' } ,
12321232 options : {
@@ -1239,7 +1239,7 @@ describe('globals', function() {
12391239
12401240 it ( 'should populate crossOrigin if empty string' , function ( ) {
12411241 Raven . _makeImageRequest ( {
1242- url : Raven . _globalServer ,
1242+ url : Raven . _globalEndpoint ,
12431243 auth : { lol : '1' } ,
12441244 data : { foo : 'bar' } ,
12451245 options : {
@@ -1252,7 +1252,7 @@ describe('globals', function() {
12521252
12531253 it ( 'should not populate crossOrigin if falsey' , function ( ) {
12541254 Raven . _makeImageRequest ( {
1255- url : Raven . _globalServer ,
1255+ url : Raven . _globalEndpoint ,
12561256 auth : { lol : '1' } ,
12571257 data : { foo : 'bar' } ,
12581258 options : {
@@ -1487,7 +1487,7 @@ describe('Raven (public API)', function() {
14871487 Raven . afterLoad ( ) ;
14881488
14891489 assert . equal ( Raven . _globalKey , 'random' ) ;
1490- assert . equal ( Raven . _globalServer , 'http://some.other.server:80/api/2/store/' ) ;
1490+ assert . equal ( Raven . _globalEndpoint , 'http://some.other.server:80/api/2/store/' ) ;
14911491
14921492 assert . equal ( Raven . _globalOptions . some , 'config' ) ;
14931493 assert . equal ( Raven . _globalProject , '2' ) ;
@@ -1504,7 +1504,7 @@ describe('Raven (public API)', function() {
15041504 assert . equal ( Raven , Raven . config ( SENTRY_DSN , { foo : 'bar' } ) , 'it should return Raven' ) ;
15051505
15061506 assert . equal ( Raven . _globalKey , 'abc' ) ;
1507- assert . equal ( Raven . _globalServer , 'http://example.com:80/api/2/store/' ) ;
1507+ assert . equal ( Raven . _globalEndpoint , 'http://example.com:80/api/2/store/' ) ;
15081508 assert . equal ( Raven . _globalOptions . foo , 'bar' ) ;
15091509 assert . equal ( Raven . _globalProject , '2' ) ;
15101510 assert . isTrue ( Raven . isSetup ( ) ) ;
@@ -1514,15 +1514,15 @@ describe('Raven (public API)', function() {
15141514 Raven . config ( '//abc@example.com/2' ) ;
15151515
15161516 assert . equal ( Raven . _globalKey , 'abc' ) ;
1517- assert . equal ( Raven . _globalServer , '//example.com/api/2/store/' ) ;
1517+ assert . equal ( Raven . _globalEndpoint , '//example.com/api/2/store/' ) ;
15181518 assert . equal ( Raven . _globalProject , '2' ) ;
15191519 assert . isTrue ( Raven . isSetup ( ) ) ;
15201520 } ) ;
15211521
15221522 it ( 'should work should work at a non root path' , function ( ) {
15231523 Raven . config ( '//abc@example.com/sentry/2' ) ;
15241524 assert . equal ( Raven . _globalKey , 'abc' ) ;
1525- assert . equal ( Raven . _globalServer , '//example.com/sentry/api/2/store/' ) ;
1525+ assert . equal ( Raven . _globalEndpoint , '//example.com/sentry/api/2/store/' ) ;
15261526 assert . equal ( Raven . _globalProject , '2' ) ;
15271527 assert . isTrue ( Raven . isSetup ( ) ) ;
15281528 } ) ;
0 commit comments