Skip to content

Commit

Permalink
Update worker.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ericboucher committed Feb 24, 2025
1 parent 5dce112 commit e2f649c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions alerting/src/aa-storm-alert/worker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ jest.mock('../entities/anticipatoryActionAlerts.entity');

const mockedCreateConnection = jest.fn();
jest.mock('typeorm', () => ({
...jest.requireActual('typeorm'),
createConnection: () => mockedCreateConnection(),
}));

Expand All @@ -24,11 +25,6 @@ jest.mock('./alert', () => {
};
});

jest.mock('typeorm', () => ({
...jest.requireActual('typeorm'),
ILike: jest.fn((value) => ({ _type: 'ilike', value })),
}));

describe('worker', () => {
it('updates the db', async () => {
// arrange
Expand Down

0 comments on commit e2f649c

Please sign in to comment.