chore: apply eslint --fix autofixes (remove unnecessary as never casts in tests)
This commit is contained in:
@@ -22,7 +22,7 @@ describe('OrganizationsService — host organization rules', () => {
|
||||
});
|
||||
|
||||
it('does not allow the host organization to be archived', async () => {
|
||||
repo.findOne.mockResolvedValue({ id: 1, name: '本机构', isHost: true } as Organization);
|
||||
repo.findOne.mockResolvedValue({ id: 1, name: '本机构', isHost: true });
|
||||
|
||||
await expect(service.remove(1)).rejects.toBeInstanceOf(BadRequestException);
|
||||
expect(repo.update).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user