@@ -25,7 +25,7 @@ describe('plot schema', function() {
2525 var isPlainObject = Lib . isPlainObject ;
2626
2727 var VALTYPES = Object . keys ( valObjects ) ;
28- var ROLES = [ 'info' , 'style' , 'data' ] ;
28+ var deprecatedRoles = [ 'info' , 'style' , 'data' ] ;
2929 var editType = plotSchema . defs . editType ;
3030
3131 function assertTraceSchema ( callback ) {
@@ -73,11 +73,11 @@ describe('plot schema', function() {
7373 ) ;
7474 } ) ;
7575
76- it ( 'all attributes should only have valid `role`' , function ( ) {
76+ it ( 'all attributes should not have valid a deprecated `role`' , function ( ) {
7777 assertPlotSchema (
7878 function ( attr ) {
7979 if ( isValObject ( attr ) ) {
80- expect ( ROLES . indexOf ( attr . role ) ! == - 1 ) . toBe ( true , attr ) ;
80+ expect ( deprecatedRoles . indexOf ( attr . role ) = == - 1 ) . toBe ( true , attr ) ;
8181 }
8282 }
8383 ) ;
@@ -223,7 +223,7 @@ describe('plot schema', function() {
223223 ) ;
224224 } ) ;
225225
226- it ( 'deprecated attributes should have a `valType` and `role` ' , function ( ) {
226+ it ( 'deprecated attributes should have a `valType` and not any deprecated roles ' , function ( ) {
227227 var DEPRECATED = '_deprecated' ;
228228
229229 assertPlotSchema (
@@ -234,7 +234,7 @@ describe('plot schema', function() {
234234
235235 expect ( VALTYPES . indexOf ( dAttr . valType ) !== - 1 )
236236 . toBe ( true , attrString + ': ' + dAttrName ) ;
237- expect ( ROLES . indexOf ( dAttr . role ) ! == - 1 )
237+ expect ( deprecatedRoles . indexOf ( dAttr . role ) = == - 1 )
238238 . toBe ( true , attrString + ': ' + dAttrName ) ;
239239 } ) ;
240240 }
0 commit comments