Skip to content

Commit

Permalink
chore: use const in benchmark and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 27, 2020
1 parent f68753f commit 2c4aa08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ testutils.doFilterTest("~98% of results + Fuzzy match, [Worst case but shorter s

const query = "index"
testutils.start_timer()
prepared = fuzzaldrinPlus.prepareQuery(query)
const prepared = fuzzaldrinPlus.prepareQuery(query)
for (const line of lines) {
fuzzaldrinPlus.match(line, query, {
preparedQuery: prepared,
Expand Down
2 changes: 1 addition & 1 deletion spec/filter-tree-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const DeepEqual = require("deep-equal")

describe("filterTree", () => {
it("can fuzzy search in an array tree objects", () => {
candidates = [
const candidates = [
{ data: "bye1", children: [{ data: "hello" }] },
{ data: "Bye2", children: [{ data: "_bye4" }, { data: "hel" }] },
{ data: "eye" },
Expand Down

0 comments on commit 2c4aa08

Please sign in to comment.