Skip to content

Commit

Permalink
fix: test with wrong time
Browse files Browse the repository at this point in the history
  • Loading branch information
as1729 committed Jan 5, 2024
1 parent 905db08 commit 31e7229
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/server/__tests__/lib/grants-ingest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ describe('processMessages', async () => {
};
knexStub = sinon.stub().returns(knexQuery);
sqsStub = { send: sinon.stub() };
this.clockFn = (date) => sinon.useFakeTimers(new Date(date));
this.clock = this.clockFn('2023-12-05');
});

afterEach(() => {
this.clock.restore();
sinon.restore();
});

Expand Down

0 comments on commit 31e7229

Please sign in to comment.