1 parent 57f67a1 commit 97ffcd3Copy full SHA for 97ffcd3
1 file changed
core/util/dev/beforeEachTemplate.js
@@ -1,5 +1,9 @@
1
const dns = require('node:dns');
2
-const { fetch: undiciFetch, MockAgent, setGlobalDispatcher } = require('undici');
+const {
3
+ fetch: undiciFetch,
4
+ MockAgent,
5
+ setGlobalDispatcher,
6
+} = require('undici');
7
8
const staticIndex = require('../../test/data/static/index.json');
9
const staticSchedule = require('../../test/data/static/schedule.json');
@@ -31,9 +35,7 @@ function beforeEachTemplate() {
31
35
.reply(200, staticSchedule);
32
36
33
37
const customMock = mockAgent.get('https://bnb.im');
34
- customMock
- .intercept({ path: '/dist/index.json' })
- .reply(200, staticIndex);
38
+ customMock.intercept({ path: '/dist/index.json' }).reply(200, staticIndex);
39
customMock
40
.intercept({ path: '/dist/schedule.json' })
41
0 commit comments