From 744041bb59c5f57f1771537fe3e37a7f815a4a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Mon, 21 Nov 2016 15:38:53 -0500 Subject: [PATCH] schema: fix defs.metaKeys field --- src/plot_api/plot_schema.js | 2 +- test/jasmine/tests/plotschema_test.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/plot_api/plot_schema.js b/src/plot_api/plot_schema.js index 972835dbfb2..c5a55ef34ee 100644 --- a/src/plot_api/plot_schema.js +++ b/src/plot_api/plot_schema.js @@ -61,7 +61,7 @@ exports.get = function() { return { defs: { valObjects: Lib.valObjects, - metaKeys: UNDERSCORE_ATTRS.concat['description', 'role'] + metaKeys: UNDERSCORE_ATTRS.concat(['description', 'role']) }, traces: traces, diff --git a/test/jasmine/tests/plotschema_test.js b/test/jasmine/tests/plotschema_test.js index ec7b4819fe4..eb0983b4857 100644 --- a/test/jasmine/tests/plotschema_test.js +++ b/test/jasmine/tests/plotschema_test.js @@ -187,4 +187,11 @@ describe('plot schema', function() { expect(attrNames).toContain(k); }); }); + + it('should list correct defs', function() { + expect(plotSchema.defs.valObjects).toBeDefined(); + + expect(plotSchema.defs.metaKeys) + .toEqual(['_isSubplotObj', '_isLinkedToArray', '_deprecated', 'description', 'role']); + }); });