fix: resolve biome lint errors in discovery files
Remove unused functions and imports from route tests, fix array index key warnings in skeleton components, apply biome formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it } from "bun:test";
|
||||
import { Hono } from "hono";
|
||||
import { globalItems, items, setups, setupItems } from "../../src/db/schema.ts";
|
||||
import { globalItems, setups } from "../../src/db/schema.ts";
|
||||
import { discoveryRoutes } from "../../src/server/routes/discovery.ts";
|
||||
import { createTestDb } from "../helpers/db.ts";
|
||||
|
||||
@@ -45,26 +45,6 @@ async function insertPublicSetup(
|
||||
return row;
|
||||
}
|
||||
|
||||
async function insertItem(
|
||||
db: TestDb["db"],
|
||||
userId: number,
|
||||
name: string,
|
||||
): Promise<number> {
|
||||
const [row] = await db
|
||||
.insert(items)
|
||||
.values({ name, categoryId: 1, userId })
|
||||
.returning();
|
||||
return row.id;
|
||||
}
|
||||
|
||||
async function addItemToSetup(
|
||||
db: TestDb["db"],
|
||||
setupId: number,
|
||||
itemId: number,
|
||||
) {
|
||||
await db.insert(setupItems).values({ setupId, itemId });
|
||||
}
|
||||
|
||||
describe("Discovery Routes", () => {
|
||||
let app: Hono;
|
||||
let db: TestDb["db"];
|
||||
|
||||
Reference in New Issue
Block a user