Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 4ed699d

Browse files
committed
rebuild
1 parent 557df2c commit 4ed699d

8 files changed

Lines changed: 323 additions & 117 deletions

File tree

__tests__/issue.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ test('output message with line and column number', () => {
1010
4
1111
)
1212

13-
expect(issue.output()).toBe('"Using directive is not required by the code and can be safely removed" on /home/runner/work/ReShaperInspectionInCI/ReShaperInspectionInCI/ReShaperInspectionInCI/Controllers/WeatherForecastController.cs(4,67)')
13+
expect(issue.output()).toBe(
14+
'"Using directive is not required by the code and can be safely removed" on /home/runner/work/ReShaperInspectionInCI/ReShaperInspectionInCI/ReShaperInspectionInCI/Controllers/WeatherForecastController.cs(4,67)'
15+
)
1416
})
1517

1618
test('output message without line and column number', () => {
@@ -22,5 +24,7 @@ test('output message without line and column number', () => {
2224
'warning'
2325
)
2426

25-
expect(issue.output()).toBe('"Using directive is not required by the code and can be safely removed" on /home/runner/work/ReShaperInspectionInCI/ReShaperInspectionInCI/ReShaperInspectionInCI/Program.cs')
27+
expect(issue.output()).toBe(
28+
'"Using directive is not required by the code and can be safely removed" on /home/runner/work/ReShaperInspectionInCI/ReShaperInspectionInCI/ReShaperInspectionInCI/Program.cs'
29+
)
2630
})

__tests__/report.test.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,27 @@ import path from 'path'
33
import failureReportIssues from './expected_data/failure_report_issues.json'
44

55
test('success report has no issue', () => {
6-
const report = new Report(path.join(__dirname, '..', '__fixtures__', 'inspection_reports', 'success.xml'))
6+
const report = new Report(
7+
path.join(
8+
__dirname,
9+
'..',
10+
'__fixtures__',
11+
'inspection_reports',
12+
'success.xml'
13+
)
14+
)
715
expect(report.issues.length).toBe(0)
816
})
917

1018
test('failure report has issues', () => {
11-
const report = new Report(path.join(__dirname, '..', '__fixtures__', 'inspection_reports', 'failure.xml'))
19+
const report = new Report(
20+
path.join(
21+
__dirname,
22+
'..',
23+
'__fixtures__',
24+
'inspection_reports',
25+
'failure.xml'
26+
)
27+
)
1228
expect(report.issues).toIncludeSameMembers(failureReportIssues)
1329
})

0 commit comments

Comments
 (0)