mirror of
https://github.com/rustfs/console.git
synced 2026-08-30 17:14:47 +08:00
11 lines
420 B
JavaScript
11 lines
420 B
JavaScript
import test from "node:test"
|
|
import assert from "node:assert/strict"
|
|
|
|
import { canManageNotifyBackedFeature } from "../../lib/notify-module-access.js"
|
|
|
|
test("canManageNotifyBackedFeature requires notify to be explicitly enabled", () => {
|
|
assert.equal(canManageNotifyBackedFeature(false), false)
|
|
assert.equal(canManageNotifyBackedFeature(true), true)
|
|
assert.equal(canManageNotifyBackedFeature(undefined), false)
|
|
})
|