Skip to content

Commit

Permalink
Remove old backend test
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Schnell <[email protected]>
  • Loading branch information
Omega65536 committed Jan 21, 2025
1 parent f1f496a commit c89b774
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions apps/backend/src/app/alerting/alerting.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,28 +375,6 @@ describe('AlertingController (e2e)', () => {
);
});

it('GET /alerting/storageFill - should return all storage fill alerts', async () => {
const mockAlert = {
dataStoreName: 'ExampleDataStore',
filled: 75.123,
highWaterMark: 80.0,
capacity: 100.0,
};

mockStorageFillAlertRepository.find.mockResolvedValue([mockAlert]);

const response = await request(app.getHttpServer())
.get('/alerting')
.expect(200);

const filteredResponse = response.body.filter(
(alert: any) => alert.highWaterMark !== undefined
);

expect(mockStorageFillAlertRepository.find).toHaveBeenCalled();
expect(filteredResponse).toEqual([mockAlert]);
});

it('POST /alerting/missingBackup - should create a new missing backup alert', async () => {
const createMissingBackupAlertDto: CreateMissingBackupAlertDto = {
referenceDate: new Date('2025-01-13T17:53:33.239Z'),
Expand Down

0 comments on commit c89b774

Please sign in to comment.