Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
// @vitest-environment node
import { describe, expect, test } from "vitest";
import { isReviewSubmitDisabled } from "./reviewAction";
describe("isReviewSubmitDisabled", () => {
test("disables approval for the last plan editor without blocking rejection", () => {
expect(
isReviewSubmitDisabled({
action: "APPROVE",
canApprove: false,
commentMissing: false,
loading: false,
})
).toBe(true);
expect(
isReviewSubmitDisabled({
action: "REJECT",
canApprove: false,
commentMissing: false,
loading: false,
})
).toBe(false);
});
});