File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
test/jasmine/bundle_tests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ describe('plot schema', function() {
78
78
function ( attr ) {
79
79
if ( isValObject ( attr ) ) {
80
80
expect ( deprecatedRoles . indexOf ( attr . role ) === - 1 ) . toBe ( true , attr ) ;
81
+ expect ( attr . role ) . toBeUndefined ( attr ) ;
81
82
}
82
83
}
83
84
) ;
@@ -232,10 +233,10 @@ describe('plot schema', function() {
232
233
Object . keys ( attr [ DEPRECATED ] ) . forEach ( function ( dAttrName ) {
233
234
var dAttr = attr [ DEPRECATED ] [ dAttrName ] ;
234
235
235
- expect ( VALTYPES . indexOf ( dAttr . valType ) !== - 1 )
236
- . toBe ( true , attrString + ': ' + dAttrName ) ;
237
- expect ( deprecatedRoles . indexOf ( dAttr . role ) === - 1 )
238
- . toBe ( true , attrString + ': ' + dAttrName ) ;
236
+ var msg = attrString + ': ' + dAttrName ;
237
+ expect ( VALTYPES . indexOf ( dAttr . valType ) !== - 1 ) . toBe ( true , msg ) ;
238
+ expect ( deprecatedRoles . indexOf ( dAttr . role ) === - 1 ) . toBe ( true , msg ) ;
239
+ expect ( dAttr . role ) . toBeUndefined ( msg ) ;
239
240
} ) ;
240
241
}
241
242
}
You can’t perform that action at this time.
0 commit comments