Files
rustfs-console/tests/lib/event-destinations-access.test.js
T
2026-04-27 17:30:45 +08:00

11 lines
417 B
JavaScript

import test from "node:test"
import assert from "node:assert/strict"
import { canManageEventDestinations } from "../../lib/event-destinations-access.js"
test("canManageEventDestinations blocks changes only when notify is disabled", () => {
assert.equal(canManageEventDestinations(false), false)
assert.equal(canManageEventDestinations(true), true)
assert.equal(canManageEventDestinations(undefined), true)
})