Skip to content

Commit c1e0086

Browse files
fixing test
1 parent a0d5445 commit c1e0086

File tree

7 files changed

+8
-10
lines changed

7 files changed

+8
-10
lines changed

.codacy/codacy.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
runtimes:
22
33
4-
54
tools:
6-
- eslint@9.3.0
5+
- eslint@8.57.0
76
87
98
10-
11-
9+

tools/eslintRunner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestRunEslintToFile(t *testing.T) {
2525

2626
repositoryToAnalyze := filepath.Join(testDirectory, "src")
2727
expectedSarifFile := filepath.Join(testDirectory, "expected.sarif")
28-
eslintInstallationDirectory := filepath.Join(homeDirectory, ".cache/codacy/tools/eslint@9.3.0")
28+
eslintInstallationDirectory := filepath.Join(homeDirectory, ".cache/codacy/tools/eslint@8.57.0")
2929
nodeBinary := "node"
3030

3131
RunEslint(repositoryToAnalyze, eslintInstallationDirectory, nodeBinary, nil, false, tempResultFile, "sarif")

tools/language_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func TestCreateLanguagesConfigFile_ExtensionsFromRepository(t *testing.T) {
304304
pylint := findTool(config.Tools, "pylint")
305305
assert.ElementsMatch(t, []string{".py", ".testPy"}, pylint.Extensions)
306306
pmd := findTool(config.Tools, "pmd")
307-
assert.ElementsMatch(t, []string{".cls", ".app", ".trigger", ".scala", ".rb", ".gemspec"}, pmd.Extensions)
307+
assert.ElementsMatch(t, []string{".cls", ".app", ".trigger", ".scala", ".rb", ".gemspec", ".js", ".jsx", ".vue"}, pmd.Extensions)
308308
}
309309

310310
func findTool(tools []ToolLanguageInfo, name string) ToolLanguageInfo {

tools/testdata/repositories/test1/expected.sarif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "ESLint",
99
"informationUri": "https://eslint.org",
1010
"rules": [],
11-
"version": "9.3.0"
11+
"version": "8.57.0"
1212
}
1313
},
1414
"artifacts": [

tools/testdata/repositories/test1/src/testdata/repositories/test1/eslint.sarif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "ESLint",
99
"informationUri": "https://eslint.org",
1010
"rules": [],
11-
"version": "9.3.0"
11+
"version": "8.57.0"
1212
}
1313
},
1414
"artifacts": [

tools/testdata/repositories/test1/src/testdata/repositories/test1/expected.sarif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "ESLint",
99
"informationUri": "https://eslint.org",
1010
"rules": [],
11-
"version": "9.3.0"
11+
"version": "8.57.0"
1212
}
1313
},
1414
"artifacts": [

tools/testdata/repositories/test1/src/testdata/repositories/test1/sarif.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "ESLint",
99
"informationUri": "https://eslint.org",
1010
"rules": [],
11-
"version": "9.3.0"
11+
"version": "8.57.0"
1212
}
1313
},
1414
"artifacts": [

0 commit comments

Comments
 (0)