Skip to content

Commit 598fc5f

Browse files
committed
Fix plotschema_test.js to embrace deprecated attribute containers [882]
- Reason: deprecating `titlefont` was the first time a container, not only a value object, has been deprecated.
1 parent 678c2d9 commit 598fc5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/jasmine/bundle_tests/plotschema_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ describe('plot schema', function() {
228228

229229
assertPlotSchema(
230230
function(attr, attrName, attrs, level, attrString) {
231-
if(attr && isPlainObject(attr[DEPRECATED])) {
231+
if(attr && isPlainObject(attr[DEPRECATED]) && isValObject(attr[DEPRECATED])) {
232232
Object.keys(attr[DEPRECATED]).forEach(function(dAttrName) {
233233
var dAttr = attr[DEPRECATED][dAttrName];
234234

0 commit comments

Comments
 (0)