-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy pathclient.test.ts
40 lines (39 loc) · 943 Bytes
/
client.test.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 full from '../../../fixtures/requests/full.json';
import { runCustomFixtures } from '../../../fixtures/runCustomFixtures';
import { Request } from '../../../httpsnippet';
runCustomFixtures({
targetId: 'dart',
clientId: 'http',
tests: [
{
it: 'should support false boilerplate option',
input: full as Request,
options: {
showBoilerplate: false,
},
expected: 'boilerplate-option.dart',
},
{
it: 'should support printBody option',
input: full as Request,
options: {
printBody: false,
},
expected: 'print-body-option.dart',
},
{
it: 'should support timeout option',
input: full as Request,
options: {
timeout: 30,
},
expected: 'timeout-option.dart',
},
{
it: 'should generate full request',
input: full as Request,
options: {},
expected: 'full.dart',
},
],
});