Skip to content

Commit 1df29df

Browse files
committed
handle annotations/shape plot-schema 'items' case in test
1 parent 81697fc commit 1df29df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shelly/plotlyjs/static/plotlyjs/tests/plotschema_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('plot schema', function() {
4545

4646
it('all nested objects should have the *object* `role`', function() {
4747
assertPlotSchema(
48-
function(attr) {
49-
if(!isValObject(attr) && isPlainObject(attr)) {
48+
function(attr, attrName) {
49+
if(!isValObject(attr) && isPlainObject(attr) && attrName!=='items') {
5050
expect(attr.role === 'object').toBe(true);
5151
}
5252
}

0 commit comments

Comments
 (0)