export default async function editTest(db, id, data) {
  const editedTest = {
    updatedAt: new Date(),
    ...data,
  };
  return db.update(`/flows/${data === null || data === void 0 ? void 0 : data.flowId}/tests`, id, editedTest);
}
