Skip to content

Commit

Permalink
fixed saving screenshot file
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 24, 2025
1 parent 38166cc commit 0d4b432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mocha/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ function cloneTest(test) {

function testToFileName(test) {
let fileName = clearString(test.title)
fileName = fileName.replace(/\@\w+/g, '')
// remove tags with empty string (disable for now)
// fileName = fileName.replace(/\@\w+/g, '')
fileName = fileName.slice(0, 100)
if (fileName.indexOf('{') !== -1) {
fileName = fileName.substr(0, fileName.indexOf('{') - 3).trim()
Expand Down

0 comments on commit 0d4b432

Please sign in to comment.