Skip to content

Commit

Permalink
Add test case for snake case attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillpisarev committed May 3, 2017
1 parent 186b560 commit 1d53e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 1d53e37

Please sign in to comment.