@@ -58,11 +58,11 @@ describe('rules/require-dictionary-words', function() {
58
58
assert ( checker . checkString ( 'object[jkl] = 1;' ) . isEmpty ( ) ) ;
59
59
} ) ;
60
60
61
- it ( 'should not report real words' , function ( ) {
61
+ it ( 'should not report defined words' , function ( ) {
62
62
assert ( checker . checkString ( 'good = 1;' ) . isEmpty ( ) ) ;
63
63
} ) ;
64
64
65
- it ( 'should not report multiple real words' , function ( ) {
65
+ it ( 'should not report multiple defined words' , function ( ) {
66
66
assert ( checker . checkString ( 'goodGood = 1;' ) . isEmpty ( ) ) ;
67
67
} ) ;
68
68
} ) ;
@@ -77,7 +77,7 @@ describe('rules/require-dictionary-words', function() {
77
77
assert ( checker . checkString ( 'class Asdf { jkl() {} }' ) . getErrorCount ( ) === 2 ) ;
78
78
} ) ;
79
79
80
- it ( 'should not report real words in es6' , function ( ) {
80
+ it ( 'should not report defined words in es6' , function ( ) {
81
81
assert ( checker . checkString ( 'object = {good, good() {}, [0 + 1]: 2};' ) . isEmpty ( ) ) ;
82
82
assert ( checker . checkString ( 'class Good { good() {} }' ) . isEmpty ( ) ) ;
83
83
} ) ;
@@ -92,7 +92,7 @@ describe('rules/require-dictionary-words', function() {
92
92
} ) ;
93
93
} ) ;
94
94
95
- it ( 'should not report included words' , function ( ) {
95
+ it ( 'should not report allowed words' , function ( ) {
96
96
assert ( checker . checkString ( 'asdf = 1;' ) . isEmpty ( ) ) ;
97
97
assert ( checker . checkString ( 'object.jkl = 1;' ) . isEmpty ( ) ) ;
98
98
assert ( checker . checkString ( 'asdfAsdf = 1;' ) . isEmpty ( ) ) ;
@@ -109,12 +109,12 @@ describe('rules/require-dictionary-words', function() {
109
109
} ) ;
110
110
} ) ;
111
111
112
- it ( 'should report names used as substrings ' , function ( ) {
112
+ it ( 'should report names used as parts of names ' , function ( ) {
113
113
assert ( checker . checkString ( 'asdfAsdf = 1;' ) . getErrorCount ( ) === 2 ) ;
114
114
assert ( checker . checkString ( 'object.jklJkl = 1;' ) . getErrorCount ( ) === 2 ) ;
115
115
} ) ;
116
116
117
- it ( 'should not report included names' , function ( ) {
117
+ it ( 'should not report allowed names' , function ( ) {
118
118
assert ( checker . checkString ( 'asdf = 1;' ) . isEmpty ( ) ) ;
119
119
assert ( checker . checkString ( 'object.jkl = 1;' ) . isEmpty ( ) ) ;
120
120
} ) ;
@@ -129,12 +129,12 @@ describe('rules/require-dictionary-words', function() {
129
129
} ) ;
130
130
} ) ;
131
131
132
- it ( 'should report non-words' , function ( ) {
132
+ it ( 'should report non-words in identifiers ' , function ( ) {
133
133
assert ( checker . checkString ( 'asdf = 1;' ) . getErrorCount ( ) === 1 ) ;
134
134
assert ( checker . checkString ( 'asdfAsdf = 1;' ) . getErrorCount ( ) === 2 ) ;
135
135
} ) ;
136
136
137
- it ( 'should not report included words' , function ( ) {
137
+ it ( 'should not report allowed words in properties ' , function ( ) {
138
138
assert ( checker . checkString ( 'object.jkl = 1;' ) . isEmpty ( ) ) ;
139
139
assert ( checker . checkString ( 'object.jklJkl = 1;' ) . isEmpty ( ) ) ;
140
140
} ) ;
@@ -149,16 +149,13 @@ describe('rules/require-dictionary-words', function() {
149
149
} ) ;
150
150
} ) ;
151
151
152
- it ( 'should report names used as substrings' , function ( ) {
153
- assert ( checker . checkString ( 'object.jklJkl = 1;' ) . getErrorCount ( ) === 2 ) ;
154
- } ) ;
155
-
156
- it ( 'should report non-names' , function ( ) {
152
+ it ( 'should report non-names and identifiers' , function ( ) {
157
153
assert ( checker . checkString ( 'asdf = 1;' ) . getErrorCount ( ) === 1 ) ;
158
154
assert ( checker . checkString ( 'asdfAsdf = 1;' ) . getErrorCount ( ) === 2 ) ;
155
+ assert ( checker . checkString ( 'object.jklJkl = 1;' ) . getErrorCount ( ) === 2 ) ;
159
156
} ) ;
160
157
161
- it ( 'should not report included names' , function ( ) {
158
+ it ( 'should not report allowed names as properties ' , function ( ) {
162
159
assert ( checker . checkString ( 'object.jkl = 1;' ) . isEmpty ( ) ) ;
163
160
} ) ;
164
161
} ) ;
@@ -202,7 +199,7 @@ describe('rules/require-dictionary-words', function() {
202
199
} ) ;
203
200
} ) ;
204
201
205
- it ( 'should not report real words' , function ( ) {
202
+ it ( 'should not report defined words' , function ( ) {
206
203
assert ( checker . checkString ( 'color = 1;' ) . isEmpty ( ) ) ;
207
204
} ) ;
208
205
} ) ;
0 commit comments