Skip to content

Commit

Permalink
tests: fix invalid order of calls
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Jul 30, 2024
1 parent 402ee17 commit 786a4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/daemon/__tests__/services/services_with_db.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ describe('handleVoidedTx (db)', () => {
};

const mysql = await db.getDbConnection();
const lastEvent = await db.getLastSyncedEvent(mysql);

await expect(handleVoidedTx(context as any)).resolves.not.toThrow();

const lastEvent = await db.getLastSyncedEvent(mysql);
expect(db.voidTransaction).toHaveBeenCalledWith(
expect.any(Object),
'random-hash',
Expand Down

0 comments on commit 786a4f9

Please sign in to comment.