Skip to content

Commit ef68ccb

Browse files
committed
Fix unit test issue
1 parent f5f0986 commit ef68ccb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Flow.Launcher.Infrastructure/StringMatcher.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ public class StringMatcher
1515

1616
private readonly IAlphabet _alphabet;
1717

18-
// This is a workaround to allow unit tests to set the instance
1918
public StringMatcher(IAlphabet alphabet, Settings settings)
2019
{
2120
_alphabet = alphabet;
2221
UserSettingSearchPrecision = settings.QuerySearchPrecision;
2322
}
2423

24+
// This is a workaround to allow unit tests to set the instance
25+
public StringMatcher(IAlphabet alphabet)
26+
{
27+
_alphabet = alphabet;
28+
}
29+
2530
public static MatchResult FuzzySearch(string query, string stringToCompare)
2631
{
2732
return Ioc.Default.GetRequiredService<StringMatcher>().FuzzyMatch(query, stringToCompare);

0 commit comments

Comments
 (0)