Skip to content

Commit

Permalink
fix: #111
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Jul 28, 2022
1 parent fb5e52a commit d4d1d07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<button type="submit" nz-button nzType="primary" class="ml10 w_100" (click)="clickTest()">
<span *ngIf="status !== 'testing'" i18n><span>Send</span></span>
<span *ngIf="status === 'testing'" i18n>Abort</span>
<span *ngIf="status === 'testing' && waitSeconds" class="ml-10">{{ waitSeconds }}</span>
<span *ngIf="status === 'testing' && waitSeconds" class="ml-1">{{ waitSeconds }}</span>
</button>
<button
type="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export const eoFormatRequestData = (
return result;
};
export const eoFormatResponseData = ({ globals, report, history, id }) => {
console.log('eoFormatResponseData', globals, report, history, id);
let result: ApiTestRes;
const reportList = report.reportList || [];
//preScript code tips
Expand Down
5 changes: 3 additions & 2 deletions src/workbench/node/request/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { resolve } = require('path');
_HttpPackageClass = new (require('./libs/http.package').core)(),
_GetFileClass = new (require('./libs/getFile.package').core)(),
_LibsMineType = require('./libs/mineType.package');

let CONFIG = require('./config.json');

const _EO_LANG_OBJ = require('./lang.json');
Expand Down Expand Up @@ -61,6 +61,7 @@ const { resolve } = require('path');
tmpHeaderObj = {},
tmpBinaryFileName,
tmpRequestType = inputTestData.requestType.toString();
global.eoTestGlobals = inputTestData.globals;
try {
inputTestData.headers.map(function (val, key) {
tmpHeaderObj[val.headerName] = val.headerValue;
Expand Down Expand Up @@ -685,7 +686,7 @@ const { resolve } = require('path');
});
}
main(inputTestData) {
global.eoLang = _EO_LANG_OBJ[inputTestData.lang||'en'];
global.eoLang = _EO_LANG_OBJ[inputTestData.lang || 'en'];
let unitCommonClass = this;
return new Promise((resolve, reject) => {
async function main() {
Expand Down

0 comments on commit d4d1d07

Please sign in to comment.