Skip to content

Commit 744041b

Browse files
committed
schema: fix defs.metaKeys field
1 parent d9caee9 commit 744041b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/plot_api/plot_schema.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ exports.get = function() {
6161
return {
6262
defs: {
6363
valObjects: Lib.valObjects,
64-
metaKeys: UNDERSCORE_ATTRS.concat['description', 'role']
64+
metaKeys: UNDERSCORE_ATTRS.concat(['description', 'role'])
6565
},
6666

6767
traces: traces,

test/jasmine/tests/plotschema_test.js

+7
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,11 @@ describe('plot schema', function() {
187187
expect(attrNames).toContain(k);
188188
});
189189
});
190+
191+
it('should list correct defs', function() {
192+
expect(plotSchema.defs.valObjects).toBeDefined();
193+
194+
expect(plotSchema.defs.metaKeys)
195+
.toEqual(['_isSubplotObj', '_isLinkedToArray', '_deprecated', 'description', 'role']);
196+
});
190197
});

0 commit comments

Comments
 (0)