Skip to content

Commit 2c4aa08

Browse files
committed
chore: use const in benchmark and tests
1 parent f68753f commit 2c4aa08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ testutils.doFilterTest("~98% of results + Fuzzy match, [Worst case but shorter s
2929

3030
const query = "index"
3131
testutils.start_timer()
32-
prepared = fuzzaldrinPlus.prepareQuery(query)
32+
const prepared = fuzzaldrinPlus.prepareQuery(query)
3333
for (const line of lines) {
3434
fuzzaldrinPlus.match(line, query, {
3535
preparedQuery: prepared,

spec/filter-tree-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const DeepEqual = require("deep-equal")
33

44
describe("filterTree", () => {
55
it("can fuzzy search in an array tree objects", () => {
6-
candidates = [
6+
const candidates = [
77
{ data: "bye1", children: [{ data: "hello" }] },
88
{ data: "Bye2", children: [{ data: "_bye4" }, { data: "hel" }] },
99
{ data: "eye" },

0 commit comments

Comments
 (0)