@@ -472,7 +472,7 @@ describe('config argument', function() {
472
472
} ) ;
473
473
} ) ;
474
474
475
- describe ( 'plotlyServerUrl :' , function ( ) {
475
+ describe ( 'plotlyServerURL :' , function ( ) {
476
476
var gd ;
477
477
var form ;
478
478
@@ -488,7 +488,7 @@ describe('config argument', function() {
488
488
it ( 'should default to plotly cloud' , function ( done ) {
489
489
Plotly . plot ( gd , [ ] , { } )
490
490
. then ( function ( ) {
491
- expect ( gd . _context . plotlyServerUrl ) . toBe ( 'https://plot.ly' ) ;
491
+ expect ( gd . _context . plotlyServerURL ) . toBe ( 'https://plot.ly' ) ;
492
492
493
493
Plotly . Plots . sendDataToCloud ( gd ) ;
494
494
expect ( form . action ) . toBe ( 'https://plot.ly/external' ) ;
@@ -499,9 +499,9 @@ describe('config argument', function() {
499
499
} ) ;
500
500
501
501
it ( 'can be set to other base urls' , function ( done ) {
502
- Plotly . plot ( gd , [ ] , { } , { plotlyServerUrl : 'dummy' } )
502
+ Plotly . plot ( gd , [ ] , { } , { plotlyServerURL : 'dummy' } )
503
503
. then ( function ( ) {
504
- expect ( gd . _context . plotlyServerUrl ) . toBe ( 'dummy' ) ;
504
+ expect ( gd . _context . plotlyServerURL ) . toBe ( 'dummy' ) ;
505
505
506
506
Plotly . Plots . sendDataToCloud ( gd ) ;
507
507
expect ( form . action ) . toContain ( '/dummy/external' ) ;
@@ -514,9 +514,9 @@ describe('config argument', function() {
514
514
it ( 'has lesser priotiy then window env' , function ( done ) {
515
515
window . PLOTLYENV = { BASE_URL : 'yo' } ;
516
516
517
- Plotly . plot ( gd , [ ] , { } , { plotlyServerUrl : 'dummy' } )
517
+ Plotly . plot ( gd , [ ] , { } , { plotlyServerURL : 'dummy' } )
518
518
. then ( function ( ) {
519
- expect ( gd . _context . plotlyServerUrl ) . toBe ( 'dummy' ) ;
519
+ expect ( gd . _context . plotlyServerURL ) . toBe ( 'dummy' ) ;
520
520
521
521
Plotly . Plots . sendDataToCloud ( gd ) ;
522
522
expect ( form . action ) . toContain ( '/yo/external' ) ;
0 commit comments