11var Plotly = require ( '@lib/index' ) ;
2- var Plots = Plotly . Plots ;
2+ var Plots = require ( '@src/plots/plots' ) ;
33var Lib = require ( '@src/lib' ) ;
44
55var d3Select = require ( '../../strict-d3' ) . select ;
@@ -687,7 +687,7 @@ describe('config argument', function() {
687687 fillParent ( 1 , 1 ) ;
688688 var cntWindowResize = 0 ;
689689 window . addEventListener ( 'resize' , function ( ) { cntWindowResize ++ ; } ) ;
690- spyOn ( Plotly . Plots , 'resize' ) . and . callThrough ( ) ;
690+ spyOn ( Plots , 'resize' ) . and . callThrough ( ) ;
691691
692692 Plotly . newPlot ( gd , data , { } , { responsive : true } )
693693 . then ( function ( ) { return Plotly . restyle ( gd , 'y[0]' , data [ 0 ] . y [ 0 ] + 2 ) ; } )
@@ -696,7 +696,7 @@ describe('config argument', function() {
696696 // .then(function() {viewport.set(newWidth, 2 * newHeight);}).then(delay(200))
697697 . then ( function ( ) {
698698 expect ( cntWindowResize ) . toBe ( 1 ) ;
699- expect ( Plotly . Plots . resize . calls . count ( ) ) . toBe ( 1 ) ;
699+ expect ( Plots . resize . calls . count ( ) ) . toBe ( 1 ) ;
700700 } )
701701 . then ( done , done . fail ) ;
702702 } ) ;
@@ -807,7 +807,7 @@ describe('config argument', function() {
807807 } ) ;
808808
809809 it ( 'should not resize if gd is hidden' , function ( done ) {
810- spyOn ( Plotly . Plots , 'resize' ) . and . callThrough ( ) ;
810+ spyOn ( Plots , 'resize' ) . and . callThrough ( ) ;
811811
812812 fillParent ( 1 , 1 ) ;
813813 Plotly . newPlot ( gd , data , { } , { responsive : true } )
@@ -817,7 +817,7 @@ describe('config argument', function() {
817817 } )
818818 . then ( delay ( RESIZE_DELAY ) )
819819 . then ( function ( ) {
820- expect ( Plotly . Plots . resize . calls . count ( ) ) . toBe ( 0 ) ;
820+ expect ( Plots . resize . calls . count ( ) ) . toBe ( 0 ) ;
821821 } )
822822 . then ( done , done . fail ) ;
823823 } ) ;
0 commit comments