@@ -22,17 +22,21 @@ describe('scoreActionMatch', () => {
2222 } ) ;
2323
2424 it ( 'matches multi-word queries when every token is a substring' , ( ) => {
25- expect ( scoreActionMatch ( 'go to settings preferences account' , 'set acc' ) )
26- . toBeGreaterThan ( 0 ) ;
25+ expect (
26+ scoreActionMatch ( 'go to settings preferences account' , 'set acc' ) ,
27+ ) . toBeGreaterThan ( 0 ) ;
2728 } ) ;
2829
2930 it ( 'rejects fuzzy false-positives that the cmdk default would accept' , ( ) => {
30- expect ( scoreActionMatch ( 'go to history reading history visited' , 'react' ) )
31- . toBe ( 0 ) ;
32- expect ( scoreActionMatch ( 'switch to list layout view density' , 'react' ) )
33- . toBe ( 0 ) ;
34- expect ( scoreActionMatch ( 'open profile details settings preferences' , 'react' ) )
35- . toBe ( 0 ) ;
31+ expect (
32+ scoreActionMatch ( 'go to history reading history visited' , 'react' ) ,
33+ ) . toBe ( 0 ) ;
34+ expect (
35+ scoreActionMatch ( 'switch to list layout view density' , 'react' ) ,
36+ ) . toBe ( 0 ) ;
37+ expect (
38+ scoreActionMatch ( 'open profile details settings preferences' , 'react' ) ,
39+ ) . toBe ( 0 ) ;
3640 } ) ;
3741
3842 it ( 'still matches a real "react" query against a real "react" target' , ( ) => {
@@ -43,11 +47,9 @@ describe('scoreActionMatch', () => {
4347describe ( 'spotlightCommandFilter' , ( ) => {
4448 it ( 'lets passthrough rows (entity hits) through unconditionally' , ( ) => {
4549 expect (
46- spotlightCommandFilter (
47- 'tomer aberbach @tomer' ,
48- 'react' ,
49- [ SPOTLIGHT_PASSTHROUGH_KEYWORD ] ,
50- ) ,
50+ spotlightCommandFilter ( 'tomer aberbach @tomer' , 'react' , [
51+ SPOTLIGHT_PASSTHROUGH_KEYWORD ,
52+ ] ) ,
5153 ) . toBe ( 1 ) ;
5254 } ) ;
5355
0 commit comments