chore: upgrade ts generator for better type safety (#20975)

* chore: upgrade ts generator for better type safety

* spec: fix tests
This commit is contained in:
Samuel Attard 2019-11-05 13:34:04 -08:00 committed by GitHub
parent 6e5ac301ce
commit fcee7212ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 12 deletions

View file

@ -529,12 +529,12 @@ describe('protocol module', () => {
const port = (server.address() as AddressInfo).port
const url = `http://127.0.0.1:${port}`
await interceptHttpProtocol('http', (request, callback) => {
const data = {
const data: Electron.RedirectRequest = {
url: url,
method: 'POST',
uploadData: {
contentType: 'application/x-www-form-urlencoded',
bytes: request.uploadData[0].bytes
data: request.uploadData[0].bytes
},
session: null
}