Skip to content

Commit

Permalink
fixed UI log error (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jan 8, 2025
1 parent e08b15a commit eb1060c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

* 2.9.13
- fixed UI log error (#164)

* 2.9.12
- fixed markdown style

Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class MonocartReporter {

addTestLog(test, log) {
if (test && test.logs) {
test.logs.push(log);
// log could be Buffer
test.logs.push(`${log}`);
}
}

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,33 @@
"url": "git+https://github.com/cenfun/monocart-reporter.git"
},
"dependencies": {
"console-grid": "^2.2.2",
"console-grid": "^2.2.3",
"eight-colors": "^1.3.1",
"koa": "^2.15.3",
"koa-static-resolver": "^1.0.6",
"lz-utils": "^2.1.0",
"monocart-coverage-reports": "^2.11.3",
"monocart-coverage-reports": "^2.11.5",
"monocart-locator": "^1.0.2",
"nodemailer": "^6.9.16"
},
"devDependencies": {
"@babel/code-frame": "^7.26.2",
"@playwright/test": "^1.49.0",
"@playwright/test": "^1.49.1",
"ansi-to-html": "^0.7.2",
"async-tick": "^1.0.0",
"autolinker": "^4.0.0",
"autolinker": "^4.1.0",
"axios": "^1.7.9",
"commander": "^12.1.0",
"commander": "^13.0.0",
"dotenv": "^16.4.7",
"eslint": "^9.16.0",
"eslint": "^9.17.0",
"eslint-config-plus": "^2.0.2",
"eslint-plugin-html": "^8.1.2",
"eslint-plugin-vue": "^9.32.0",
"file-saver": "^2.0.5",
"find-up": "^7.0.0",
"github-markdown-css": "^5.8.1",
"glob": "^11.0.0",
"marked": "^15.0.3",
"marked": "^15.0.6",
"mermaid": "^11.4.1",
"mitt": "^3.0.1",
"monocart-code-viewer": "^1.1.4",
Expand All @@ -78,9 +78,9 @@
"open": "8.4.2",
"sanitize-filename": "^1.6.3",
"stack-utils": "^2.0.6",
"stylelint": "^16.11.0",
"stylelint": "^16.12.0",
"stylelint-config-plus": "^1.1.3",
"supports-color": "^9.4.0",
"supports-color": "^10.0.0",
"turbogrid": "^3.2.0",
"vine-ui": "^3.1.16",
"ws": "^8.18.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/app/src/modules/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const convert = new Convert({
});

const convertHtml = (str) => {
if (typeof str !== 'string') {
str = `${str}`;
}

const reg = /\s$/;
const endsWithN = reg.test(str) ? '' : '<br/>';
Expand Down

0 comments on commit eb1060c

Please sign in to comment.