File tree 1 file changed +3
-0
lines changed
Filter options
1 file changed +3
-0
lines changed
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ describe('Test shapes:', function() {
79
79
var shape = getRandomShape ( ) ;
80
80
81
81
Plotly . relayout ( gd , 'shapes[' + index + ']' , shape ) . then ( function ( ) {
82
+ expect ( countShapeLayers ( ) ) . toEqual ( 1 ) ;
82
83
expect ( getLastShape ( gd ) ) . toEqual ( shape ) ;
83
84
expect ( countShapes ( gd ) ) . toEqual ( index + 1 ) ;
84
85
} ) . then ( done ) ;
@@ -89,11 +90,13 @@ describe('Test shapes:', function() {
89
90
var shape = getRandomShape ( ) ;
90
91
91
92
Plotly . relayout ( gd , 'shapes[' + index + ']' , shape ) . then ( function ( ) {
93
+ expect ( countShapeLayers ( ) ) . toEqual ( 1 ) ;
92
94
expect ( getLastShape ( gd ) ) . toEqual ( shape ) ;
93
95
expect ( countShapes ( gd ) ) . toEqual ( index + 1 ) ;
94
96
} ) . then ( function ( ) {
95
97
Plotly . relayout ( gd , 'shapes[' + index + ']' , 'remove' ) ;
96
98
} ) . then ( function ( ) {
99
+ expect ( countShapeLayers ( ) ) . toEqual ( 1 ) ;
97
100
expect ( countShapes ( gd ) ) . toEqual ( index ) ;
98
101
} ) . then ( done ) ;
99
102
} ) ;
You can’t perform that action at this time.
0 commit comments