-
Notifications
You must be signed in to change notification settings - Fork 308
/
fixtures.ts
53 lines (52 loc) · 1.07 KB
/
fixtures.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import nock from 'nock'
export const mockResponse = (): nock.Scope =>
nock('https://serenitybank.io/stablecoin', {
encodedQueryParams: true,
})
.get('/USDFB/audit')
.query({})
.reply(
200,
() => ({
accountName: 'USDFB',
ripcord: false,
ripcordDetails: [],
timestamp: '2024-09-19T18:42:27.653767Z',
totalReserve: 2000000,
totalToken: 0,
}),
[
'Content-Type',
'application/json',
'Connection',
'close',
'Vary',
'Accept-Encoding',
'Vary',
'Origin',
],
)
.persist()
.get('/NO_RESERVE/audit')
.query({})
.reply(
200,
() => ({
accountName: 'NO_RESERVE',
ripcord: false,
ripcordDetails: [],
timestamp: '2024-09-19T18:42:27.653767Z',
totalToken: 0,
}),
[
'Content-Type',
'application/json',
'Connection',
'close',
'Vary',
'Accept-Encoding',
'Vary',
'Origin',
],
)
.persist()