mirror of
https://github.com/rustfs/console.git
synced 2026-08-28 19:47:21 +08:00
11 lines
417 B
JavaScript
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)
|
|
})
|