chore: apply eslint --fix autofixes (remove unnecessary as never casts in tests)

This commit is contained in:
2026-07-12 23:01:37 +08:00
parent b5f4b8747c
commit a266d450e1
9 changed files with 32 additions and 32 deletions

View File

@@ -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();