Skip to content

Commit ab3619f

Browse files
committed
Remove console notes in getOutputById
related: runtimes/automation/issues/600 Signed-off-by: Lan Xia <[email protected]>
1 parent 3a279a2 commit ab3619f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TestResultSummaryService/routes/getOutputById.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const { TestResultsDB, OutputDB, ObjectID } = require('../Database');
22
const { removeTimestamp } = require('./utils/removeTimestamp');
33
const { applyDeepSmithMatch } = require('./utils/applyDeepSmithMatch');
4+
const { removeAnsiCode } = require('../Utils');
45

56
module.exports = async (req, res) => {
67
const { id, removeTimestampFlag, applyDeepSmithMatchFlag } = req.query;
@@ -14,7 +15,7 @@ module.exports = async (req, res) => {
1415
result[0].output = applyDeepSmithMatch(result[0].output);
1516
}
1617
res.send({
17-
output: result[0].output,
18+
output: removeAnsiCode(result[0].output),
1819
});
1920
} catch (error) {
2021
res.send({ error });

0 commit comments

Comments
 (0)