Skip to content

Commit

Permalink
fix: set date to fixed (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
janthijs committed Jun 20, 2023
1 parent 33e42c6 commit 0645d1d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
},
"devDependencies": {
"@types/express-http-proxy": "^1.6.3",
"mockdate": "^3.0.5",
"nock": "^13.2.2"
}
}
3 changes: 3 additions & 0 deletions src/server/services/bodem/loodmeting.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import nock from 'nock';
import MockDate from 'mockdate';
import { AuthProfileAndToken } from '../../helpers/app';
import metingen from '../../mock-data/json/loodmetingen.json';
import document from '../../mock-data/json/loodmeting_rapport.json';
Expand All @@ -23,10 +24,12 @@ describe('Loodmeting', () => {
afterAll(() => {
nock.enableNetConnect();
nock.restore();
MockDate.reset();
});

beforeAll(() => {
nock.disableNetConnect();
MockDate.set('2023-04-01');
});

beforeEach(() => {
Expand Down

0 comments on commit 0645d1d

Please sign in to comment.