mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 06:41:46 +00:00
chore: apply prettier on the entire project
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
import {
|
||||
checkPermission,
|
||||
getPermissionLevel,
|
||||
savePermissions,
|
||||
invalidatePermissionsCache,
|
||||
PERMISSION_ACTIONS,
|
||||
} from '../../../src/services/permissions';
|
||||
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
|
||||
// Mutable rows array so individual tests can inject DB rows
|
||||
@@ -15,8 +23,6 @@ vi.mock('../../../src/db/database', () => ({
|
||||
},
|
||||
}));
|
||||
|
||||
import { checkPermission, getPermissionLevel, savePermissions, invalidatePermissionsCache, PERMISSION_ACTIONS } from '../../../src/services/permissions';
|
||||
|
||||
describe('permissions', () => {
|
||||
describe('checkPermission — admin bypass', () => {
|
||||
it('admin always passes regardless of permission level', () => {
|
||||
|
||||
Reference in New Issue
Block a user