From 1d53e378a6867134d5451daabb684d6a2a58ac1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B8=D1=81=D0=B0=D1=80=D0=B5=D0=B2=20=D0=9A=D0=B8?= =?UTF-8?q?=D1=80=D0=B8=D0=BB=D0=BB?= Date: Wed, 3 May 2017 12:33:07 +0300 Subject: [PATCH] Add test case for snake case attributes --- test/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/utils.js b/test/utils.js index f6cb2f3f..cf5af8f3 100644 --- a/test/utils.js +++ b/test/utils.js @@ -42,10 +42,11 @@ describe('camelCase', () => { describe('getEnabledAttributes', () => { it('return true when nodeName is found', () => { - const enabledAttributes = ['x', 'y']; + const enabledAttributes = ['x', 'y', 'strokeOpacity']; const hasEnabledAttribute = getEnabledAttributes(enabledAttributes); expect(hasEnabledAttribute({nodeName: 'x'})).to.deep.equal(true); + expect(hasEnabledAttribute({nodeName: 'stroke-opacity'})).to.deep.equal(true); }); it('return false when nodeName is not found', () => {