Skip to content

Commit 0a766b2

Browse files
committed
replace first dot
1 parent 6ca04cf commit 0a766b2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ module.exports = {
99
console.log('##teamcity[testSuiteStarted name=\'lesshint\']');
1010

1111
errors.forEach(function (err) {
12-
if (lastFile !== err.fullPath) {
12+
var errFile = err.fullPath.replace('./', '');
13+
14+
if (lastFile !== errFile) {
1315
if (lastFile) {
1416
console.log(util.format('##teamcity[testFinished name=\'%s\']', lastFile));
1517
}
1618

17-
lastFile = err.fullPath;
19+
lastFile = errFile;
1820
console.log(util.format('##teamcity[testStarted name=\'%s\']', lastFile));
1921
}
2022

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lesshint-reporter-teamcity",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "TeamCity reporter for lesshint.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)