mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 08:35:57 +00:00
feat: vendor permission system source
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { expect, test } from "vitest";
|
||||
import { DEFAULT_EXTENSION_CONFIG } from "#src/extension-config";
|
||||
import { getPermissionSystemStatus } from "#src/status";
|
||||
|
||||
test("Permission-system status is only exposed when yolo mode is enabled", () => {
|
||||
expect(getPermissionSystemStatus(DEFAULT_EXTENSION_CONFIG)).toBe(undefined);
|
||||
expect(
|
||||
getPermissionSystemStatus({ ...DEFAULT_EXTENSION_CONFIG, yoloMode: true }),
|
||||
).toBe("yolo");
|
||||
});
|
||||
Reference in New Issue
Block a user