@@ -25,7 +25,7 @@ describe('plot schema', function() {
25
25
var isPlainObject = Lib . isPlainObject ;
26
26
27
27
var VALTYPES = Object . keys ( valObjects ) ;
28
- var deprecatedRoles = [ 'info' , 'style' , 'data' ] ;
28
+ var formerRoles = [ 'info' , 'style' , 'data' ] ;
29
29
var editType = plotSchema . defs . editType ;
30
30
31
31
function assertTraceSchema ( callback ) {
@@ -73,11 +73,11 @@ describe('plot schema', function() {
73
73
) ;
74
74
} ) ;
75
75
76
- it ( 'all attributes should not have valid a deprecated `role`' , function ( ) {
76
+ it ( 'all attributes should not have a former `role`' , function ( ) {
77
77
assertPlotSchema (
78
78
function ( attr ) {
79
79
if ( isValObject ( attr ) ) {
80
- expect ( deprecatedRoles . indexOf ( attr . role ) === - 1 ) . toBe ( true , attr ) ;
80
+ expect ( formerRoles . indexOf ( attr . role ) === - 1 ) . toBe ( true , attr ) ;
81
81
expect ( attr . role ) . toBeUndefined ( attr ) ;
82
82
}
83
83
}
@@ -224,7 +224,7 @@ describe('plot schema', function() {
224
224
) ;
225
225
} ) ;
226
226
227
- it ( 'deprecated attributes should have a `valType` and not any deprecated roles' , function ( ) {
227
+ it ( 'deprecated attributes should have a `valType` and not any former roles' , function ( ) {
228
228
var DEPRECATED = '_deprecated' ;
229
229
230
230
assertPlotSchema (
@@ -235,7 +235,7 @@ describe('plot schema', function() {
235
235
236
236
var msg = attrString + ': ' + dAttrName ;
237
237
expect ( VALTYPES . indexOf ( dAttr . valType ) !== - 1 ) . toBe ( true , msg ) ;
238
- expect ( deprecatedRoles . indexOf ( dAttr . role ) === - 1 ) . toBe ( true , msg ) ;
238
+ expect ( formerRoles . indexOf ( dAttr . role ) === - 1 ) . toBe ( true , msg ) ;
239
239
expect ( dAttr . role ) . toBeUndefined ( msg ) ;
240
240
} ) ;
241
241
}
0 commit comments