File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe("romanized", () => {
14
14
const asciiKeys = [ ...Array ( 256 ) . keys ( ) ] . map ( ( key ) =>
15
15
String . fromCharCode ( key )
16
16
) ;
17
- const filteredKeys = asciiKeys . filter ( ( key ) => testKeys . indexOf ( key ) < 0 ) ;
17
+ const filteredKeys = asciiKeys . filter ( ( key ) => ! testKeys . includes ( key ) ) ;
18
18
19
19
const receivedKeys = filteredKeys . map ( ( key ) => romanized . formatKey ( key ) ) ;
20
20
const expectedKeys = [ ...Array ( receivedKeys . length ) ] ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe("traditional", () => {
14
14
const asciiKeys = [ ...Array ( 256 ) . keys ( ) ] . map ( ( key ) =>
15
15
String . fromCharCode ( key )
16
16
) ;
17
- const filteredKeys = asciiKeys . filter ( ( key ) => testKeys . indexOf ( key ) < 0 ) ;
17
+ const filteredKeys = asciiKeys . filter ( ( key ) => ! testKeys . includes ( key ) ) ;
18
18
19
19
const receivedKeys = filteredKeys . map ( ( key ) =>
20
20
traditional . formatKey ( key )
You can’t perform that action at this time.
0 commit comments