Skip to content

Commit

Permalink
HTML Reporter: Fuzzy search using fuzzysort (threshold: -10000).
Browse files Browse the repository at this point in the history
  • Loading branch information
ventuno committed May 21, 2020
1 parent b22cf0f commit 4434e5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reporter/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ export function escapeText( s ) {
if ( searchText === "" ) {
return config.modules;
}
return fuzzysort.go( searchText, config.modules, { key: "namePrepared" } )
return fuzzysort
.go( searchText, config.modules, { key: "namePrepared", threshold: -10000 } )
.map( module => module.obj );
}

Expand Down

0 comments on commit 4434e5c

Please sign in to comment.