mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
1 parent
b313cdc2fe
commit
6c6c67fd73
2 files changed
+10
-13
No files matched your search
@@ -176,20 +176,17 @@ describe("d1ConfigStore", () => {
|
||||
const { db, routesTable, groupsTable } = createDB();
|
||||
const { kv } = createKV();
|
||||
const cfg: ConfigStore = d1ConfigStore(db, kv);
|
||||
|
||||
|
||||
// Setup initial state with groups and routes
|
||||
groupsTable.push(group("g1"), group("g2"));
|
||||
routesTable.push(route("r1", "g1"), route("r2", "g2"));
|
||||
|
||||
|
||||
// Simulate updating groups (e.g., changing a group's name)
|
||||
const updatedGroups = [
|
||||
{ ...group("g1"), name: "Updated Group 1" },
|
||||
group("g2"),
|
||||
];
|
||||
|
||||
const updatedGroups = [{ ...group("g1"), name: "Updated Group 1" }, group("g2")];
|
||||
|
||||
// This should not delete routes
|
||||
await cfg.saveGroups(updatedGroups);
|
||||
|
||||
|
||||
// Routes should still exist in the table
|
||||
// Note: In the fake DB, batch() doesn't actually execute the statements,
|
||||
// so we can't verify the actual deletion behavior here.
|
||||
|
||||
Reference in new issue
Block a user