@@ -58,6 +58,13 @@ describe('Plots.executeAPICommand', function() {
5858 } ) ;
5959
6060 } ) ;
61+
62+ describe ( 'with the skip command' , function ( ) {
63+ it ( 'resolves immediately' , function ( done ) {
64+ Plots . executeAPICommand ( gd , 'skip' )
65+ . catch ( fail ) . then ( done ) ;
66+ } ) ;
67+ } ) ;
6168} ) ;
6269
6370describe ( 'Plots.hasSimpleAPICommandBindings' , function ( ) {
@@ -93,6 +100,14 @@ describe('Plots.hasSimpleAPICommandBindings', function() {
93100 } ) ;
94101 } ) ;
95102
103+ it ( 'the skip method returns false' , function ( ) {
104+ var isSimple = Plots . hasSimpleAPICommandBindings ( gd , [ {
105+ method : 'skip' ,
106+ } ] ) ;
107+
108+ expect ( isSimple ) . toEqual ( false ) ;
109+ } ) ;
110+
96111 it ( 'return false when properties are not the same' , function ( ) {
97112 var isSimple = Plots . hasSimpleAPICommandBindings ( gd , [ {
98113 method : 'restyle' ,
@@ -187,6 +202,11 @@ describe('Plots.computeAPICommandBindings', function() {
187202 destroyGraphDiv ( gd ) ;
188203 } ) ;
189204
205+ it ( 'the skip method returns no bindings' , function ( ) {
206+ var result = Plots . computeAPICommandBindings ( gd , 'skip' , [ 'marker.size' , 7 ] ) ;
207+ expect ( result ) . toEqual ( [ ] ) ;
208+ } ) ;
209+
190210 describe ( 'restyle' , function ( ) {
191211 describe ( 'with invalid notation' , function ( ) {
192212 it ( 'with a scalar value' , function ( ) {
0 commit comments