fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-27 20:16:28 +02:00
parent 94cb734f9f
commit 434dbd718a
4 changed files with 56 additions and 1 deletions

29
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,29 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "current file",
"type": "node",
"request": "launch",
"args": [
"${relativeFile}"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "test.ts",
"type": "node",
"request": "launch",
"args": [
"test/test.ts"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
}
]
}

20
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,20 @@
{
"json.schemas": [
{
"fileMatch": ["/npmextra.json"],
"schema": {
"type": "object",
"properties": {
"npmci": {
"type": "object",
"description": "settings for npmci"
},
"gitzone": {
"type": "object",
"description": "settings for gitzone"
}
}
}
}
]
}

View File

@ -60,11 +60,17 @@ tap.test('first test', async tools => {
'http://localhost:2345/apiroute3'
]);
const response2 = await new webrequest.WebRequest().getJson('http://localhost:2345/apiroute3');
console.log(response);
console.log(response2)
expect(response)
.property('hithere')
.to.equal('hi');
expect(response2)
.property('hithere')
.to.equal('hi');
});
tap.test('tear down server', async () => {

View File

@ -108,7 +108,7 @@ export class WebRequest {
}
};
const finalResponse: Response = await doRequest(urlArg[usedUrlIndex]);
const finalResponse: Response = await doRequest(allUrls[usedUrlIndex]);
console.log(finalResponse);
return finalResponse;
}