mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
feat: custom id generation (#221)
* feat: custom id generation * fix test * fix: failing tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user