fix: resolve all lint errors across source and test files
- Fix unused function parameters (prefix with _) - Fix unused imports in test files - Fix import ordering in test files - Auto-fix formatting issues across 22 files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { beforeEach, describe, expect, it } from "bun:test";
|
||||
import {
|
||||
globalItemTags,
|
||||
globalItems,
|
||||
globalItemTags,
|
||||
items,
|
||||
tags,
|
||||
} from "../../src/db/schema.ts";
|
||||
@@ -151,7 +151,7 @@ describe("Global Item Service", () => {
|
||||
brand: "Revelate Designs",
|
||||
model: "Terrapin System",
|
||||
});
|
||||
const gi2 = await insertGlobalItem(db, {
|
||||
const _gi2 = await insertGlobalItem(db, {
|
||||
brand: "Apidura",
|
||||
model: "Handlebar Pack",
|
||||
});
|
||||
@@ -205,9 +205,7 @@ describe("Global Item Service", () => {
|
||||
await tagGlobalItem(db, gi2.id, tag.id);
|
||||
|
||||
// Both tagged bikepacking, but only one matches "terrapin"
|
||||
const results = await searchGlobalItems(db, "terrapin", [
|
||||
"bikepacking",
|
||||
]);
|
||||
const results = await searchGlobalItems(db, "terrapin", ["bikepacking"]);
|
||||
expect(results).toHaveLength(1);
|
||||
expect(results[0].model).toBe("Terrapin System");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user