Simplify API wrappers (#839)

* Updated code generation

* API generation

* Updated test

* Updated code generation

* API generation

* API generation
This commit is contained in:
Tomas Della Vedova
2019-05-03 19:02:10 +02:00
committed by delvedor
parent 99ada00747
commit 132072b8ab
264 changed files with 2855 additions and 9133 deletions

View File

@ -53,15 +53,7 @@ test('Should emit a request event when a request is performed', t => {
'Content-Length': '0'
}
},
options: {
ignore: null,
requestTimeout: null,
maxRetries: null,
asStream: false,
headers: null,
compression: false,
warnings: null
},
options: {},
id: 1
},
connection: {
@ -114,15 +106,7 @@ test('Should emit a response event in case of a successful response', t => {
'Content-Length': '0'
}
},
options: {
ignore: null,
requestTimeout: null,
maxRetries: null,
asStream: false,
headers: null,
compression: false,
warnings: null
},
options: {},
id: 1
},
connection: {
@ -174,13 +158,7 @@ test('Should emit a response event with the error set', t => {
}
},
options: {
ignore: null,
requestTimeout: 500,
maxRetries: null,
asStream: false,
headers: null,
compression: false,
warnings: null
requestTimeout: 500
},
id: 1
},