Skip to content

Commit 82facc8

Browse files
author
Joachim Seminck
committed
Add another valid test case
1 parent 73d4941 commit 82facc8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/lib/rules/no-typos.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ ruleTester.run('no-typos', rule, {
158158
'First["default" + "Props"] = {};'
159159
].join('\n'),
160160
parserOptions: parserOptions
161+
}, {
162+
code: [ // This case is currently not supported
163+
'class First extends React.Component {}',
164+
'First["PROP" + "TYPES"] = {};',
165+
'First["CONTEXT" + "TYPES"] = {};',
166+
'First["CHILDCONTEXT" + "TYPES"] = {};',
167+
'First["DEFAULT" + "PROPS"] = {};'
168+
].join('\n'),
169+
parserOptions: parserOptions
161170
}],
162171

163172
invalid: [{

0 commit comments

Comments
 (0)