mirror of
https://github.com/rustfs/console.git
synced 2026-08-29 03:52:28 +08:00
11 lines
422 B
JavaScript
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)
|
|
})
|