Skip to content

Commit

Permalink
style: format code with Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 92bae0e according to the output
from Prettier.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Jan 8, 2024
1 parent 92bae0e commit 8ac59fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export function weightedAverage(values: number[], weights?: number[]): number {
if (weights && values.length !== weights.length) {
throw new Error(
"The number of values must be equal to the number of weights"
"The number of values must be equal to the number of weights",
);
}

Expand Down
4 changes: 2 additions & 2 deletions test/pico.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("splitWordsAndRank", () => {
const result = picoSearch(
[{ name: shouldNotWork }, { name: shouldWork }],
searchTerm,
["name"]
["name"],
);

const names = result.map((r) => r.name);
Expand Down Expand Up @@ -85,7 +85,7 @@ describe("picoSearch: jaroWinkler [default]", () => {
expect(
picoSearch(objects, "ohn", ["name"], {
threshold: 0.7,
})
}),
).toMatchObject([
{ age: 25, city: "New York", name: "John Doe" },
{ age: 85, city: "Seattle", name: "John Smith" },
Expand Down

0 comments on commit 8ac59fb

Please sign in to comment.