移除账号启用状态统一使用归档
This commit is contained in:
@@ -92,4 +92,10 @@ describe('RBAC DTO id arrays', () => {
|
||||
])('rejects invalid, duplicate, or non-positive ids for %p', async (metatype, value) => {
|
||||
await expect(pipe.transform(value, { type: 'body', metatype })).rejects.toBeDefined();
|
||||
});
|
||||
|
||||
it('strips the retired isActive field from account updates', async () => {
|
||||
await expect(
|
||||
pipe.transform({ name: 'Alice', isActive: false }, { type: 'body', metatype: UpdateUserDto }),
|
||||
).resolves.toEqual({ name: 'Alice' });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user