Introduce biome as linter with lint fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { expect, test } from "vitest";
|
||||
import { test } from "vitest";
|
||||
import "fake-indexeddb/auto";
|
||||
import { IndexedDBKvPrimitives } from "./indexeddb_kv_primitives.ts";
|
||||
import { allTests } from "./kv_primitives.test.ts";
|
||||
|
||||
@@ -51,7 +51,7 @@ export async function allTests(db: KvPrimitives) {
|
||||
// Set a large batch
|
||||
const largeBatch: KV[] = [];
|
||||
for (let i = 0; i < 50; i++) {
|
||||
largeBatch.push({ key: ["test", "test" + i], value: "Hello" });
|
||||
largeBatch.push({ key: ["test", `test${i}`], value: "Hello" });
|
||||
}
|
||||
await db.batchSet(largeBatch);
|
||||
const largeBatchResult: KV[] = [];
|
||||
|
||||
@@ -14,7 +14,7 @@ function tempFilePath(): string {
|
||||
}
|
||||
|
||||
test("MemoryKvPrimitives loads from non-existent file without error", async () => {
|
||||
const tempPath = tempFilePath() + "_nonexistent";
|
||||
const tempPath = `${tempFilePath()}_nonexistent`;
|
||||
// Disable throttling for tests
|
||||
const store = new MemoryKvPrimitives(tempPath, { throttleMs: 0 });
|
||||
await store.init();
|
||||
|
||||
@@ -130,7 +130,7 @@ export class ObjectIndex {
|
||||
};
|
||||
}
|
||||
|
||||
getObjectByRef<T>(page: string, tag: string, ref: string) {
|
||||
getObjectByRef<_T>(page: string, tag: string, ref: string) {
|
||||
return this.ds.get([indexKey, tag, this.cleanKey(ref, page), page]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user