We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a279a2 commit ab3619fCopy full SHA for ab3619f
TestResultSummaryService/routes/getOutputById.js
@@ -1,6 +1,7 @@
1
const { TestResultsDB, OutputDB, ObjectID } = require('../Database');
2
const { removeTimestamp } = require('./utils/removeTimestamp');
3
const { applyDeepSmithMatch } = require('./utils/applyDeepSmithMatch');
4
+const { removeAnsiCode } = require('../Utils');
5
6
module.exports = async (req, res) => {
7
const { id, removeTimestampFlag, applyDeepSmithMatchFlag } = req.query;
@@ -14,7 +15,7 @@ module.exports = async (req, res) => {
14
15
result[0].output = applyDeepSmithMatch(result[0].output);
16
}
17
res.send({
- output: result[0].output,
18
+ output: removeAnsiCode(result[0].output),
19
});
20
} catch (error) {
21
res.send({ error });
0 commit comments