feat: custom id generation (#221)

* feat: custom id generation

* fix test

* fix: failing tests
This commit is contained in:
Bereket Engida
2024-10-18 09:17:48 +03:00
committed by GitHub
parent ddd2e2631a
commit 6826e2e58e
18 changed files with 159 additions and 87 deletions

View File

@@ -85,7 +85,9 @@ describe("migrate auth instance with plugins", () => {
config: "test/auth.ts",
y: true,
});
const res = db.prepare("INSERT INTO plugin (test) VALUES ('test')").run();
const res = db
.prepare("INSERT INTO plugin (id, test) VALUES (?, ?)")
.run("1", "test");
expect(res.changes).toBe(1);
});
});