Skip to content

Commit

Permalink
test: add a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 15, 2017
1 parent 7ca9841 commit 385afe2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/rules/void-dom-elements-no-children.js
Expand Up @@ -53,6 +53,11 @@ ruleTester.run('void-dom-elements-no-children', rule, {
code: 'document.createElement("img")'
}, {
code: 'React.createElement("img");'
}, {
code: [
'const props = {}',
'React.createElement("img", props)'
].join('\n')
}, {
code: [
'import React from "react";',
Expand Down

0 comments on commit 385afe2

Please sign in to comment.