Skip to content

Commit bfba27d

Browse files
authored
Merge pull request #1182 from plotly/schema-metakey-fix
Fix defs.metaKeys field
2 parents d9caee9 + 744041b commit bfba27d

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)