-
Notifications
You must be signed in to change notification settings - Fork 316
/
Copy pathfixtures.ts
40 lines (39 loc) · 890 Bytes
/
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
import nock from 'nock'
export const mockSuccess = (): nock.Scope =>
nock('https://gateway.fluent.finance/v1/gateway', {
encodedQueryParams: true,
})
.get('/balances')
.reply(
200,
() => [
{
number: '9000000003481',
name: '*Checking Account*',
type: 'SAVINGS',
balance: 24681.55,
availableBalance: 24681.55,
active: true,
currencyCode: 'USD',
},
{
number: '9000000003482',
name: '*Checking Account*',
type: 'SAVINGS',
balance: 0,
availableBalance: 0,
active: true,
currencyCode: 'USD',
},
],
[
'Content-Type',
'application/json',
'Connection',
'close',
'Vary',
'Accept-Encoding',
'Vary',
'Origin',
],
)