@@ -153,7 +153,7 @@ describe('plot schema', function() {
153
153
// check that no other object has '_isSubplotObj'
154
154
assertPlotSchema (
155
155
function ( attr , attrName ) {
156
- if ( attr [ IS_SUBPLOT_OBJ ] === true ) {
156
+ if ( attr && attr [ IS_SUBPLOT_OBJ ] === true ) {
157
157
expect ( astrs . indexOf ( attrName ) ) . not . toEqual ( - 1 ) ;
158
158
cnt ++ ;
159
159
}
@@ -228,7 +228,7 @@ describe('plot schema', function() {
228
228
229
229
assertPlotSchema (
230
230
function ( attr , attrName , attrs , level , attrString ) {
231
- if ( isPlainObject ( attr [ DEPRECATED ] ) ) {
231
+ if ( attr && isPlainObject ( attr [ DEPRECATED ] ) ) {
232
232
Object . keys ( attr [ DEPRECATED ] ) . forEach ( function ( dAttrName ) {
233
233
var dAttr = attr [ DEPRECATED ] [ dAttrName ] ;
234
234
@@ -244,7 +244,7 @@ describe('plot schema', function() {
244
244
245
245
it ( 'has valid or no `impliedEdits` in every attribute' , function ( ) {
246
246
assertPlotSchema ( function ( attr , attrName , attrs , level , attrString ) {
247
- if ( attr . impliedEdits !== undefined ) {
247
+ if ( attr && attr . impliedEdits !== undefined ) {
248
248
expect ( isPlainObject ( attr . impliedEdits ) )
249
249
. toBe ( true , attrString + ': ' + JSON . stringify ( attr . impliedEdits ) ) ;
250
250
// make sure it wasn't emptied out
0 commit comments