test: update test files

This commit is contained in:
Michel Jonathan Schmitz
2020-05-13 08:47:30 +02:00
parent d30de896f0
commit 9f9167c9c7
3 changed files with 56 additions and 19 deletions

View File

@@ -109,7 +109,9 @@ export class ConnectorClientSpec {
source: 'foo',
type: SCThingType.Message,
},
headers: {},
headers: {
"Content-Type": "application/json",
},
method: bulkRoute.method,
url: new URL('http://localhost' + bulkRoute.getUrlFragment()),
});
@@ -142,7 +144,9 @@ export class ConnectorClientSpec {
source: 'foo',
type: SCThingType.Message,
},
headers: {},
headers: {
"Content-Type": "application/json",
},
method: bulkRoute.method,
url: new URL('http://localhost' + bulkRoute.getUrlFragment()),
});
@@ -223,7 +227,9 @@ export class ConnectorClientSpec {
source: 'copy',
type: SCThingType.Message,
},
headers: {},
headers: {
"Content-Type": "application/json",
},
method: bulkRoute.method,
url: new URL('http://localhost' + bulkRoute.getUrlFragment()),
});
@@ -310,7 +316,9 @@ export class ConnectorClientSpec {
source: 'stapps-api',
type: SCThingType.Message,
},
headers: {},
headers: {
"Content-Type": "application/json",
},
method: bulkRoute.method,
url: new URL('http://localhost' + bulkRoute.getUrlFragment()),
});
@@ -429,7 +437,9 @@ export class ConnectorClientSpec {
expect(httpClient.request).to.have.been.called.with({
body: message,
headers: {},
headers: {
"Content-Type": "application/json",
},
method: thingUpdateRoute.method,
url: new URL('http://localhost' + thingUpdateRoute.getUrlFragment({
TYPE: SCThingType.Message,