mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 16:45:22 +00:00
11 lines
437 B
TypeScript
11 lines
437 B
TypeScript
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");
|
|
});
|