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

11 lines
422 B
JavaScript

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