feat: 重构各业务模块管理页面与服务
This commit is contained in:
@@ -23,4 +23,13 @@ describe('OccupanciesController permissions', () => {
|
||||
Reflect.getMetadata(PERMISSION_KEY, OccupanciesController.prototype.downloadTemplate),
|
||||
).toEqual(['occupancy:view']);
|
||||
});
|
||||
|
||||
it('requires occupancy:purge on permanent delete routes', () => {
|
||||
expect(Reflect.getMetadata(PERMISSION_KEY, OccupanciesController.prototype.purge)).toEqual([
|
||||
'occupancy:purge',
|
||||
]);
|
||||
expect(
|
||||
Reflect.getMetadata(PERMISSION_KEY, OccupanciesController.prototype.batchPurge),
|
||||
).toEqual(['occupancy:purge']);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user