@@ -56,7 +56,6 @@ void formattingUsingRulesetsFile(String ruleSetName) throws Exception {
56
56
// final File eslintRc = setFile(buildDir().getPath() + "/.eslintrc.js").toResource(filedir + ".eslintrc.js");
57
57
58
58
final String dirtyFile = filedir + "javascript-es6.dirty" ;
59
- File dirtyFileFile = setFile (testDir + "test.js" ).toResource (dirtyFile );
60
59
final String cleanFile = filedir + "javascript-es6.clean" ;
61
60
62
61
final FormatterStep formatterStep = EslintFormatterStep .create (
@@ -69,7 +68,7 @@ void formattingUsingRulesetsFile(String ruleSetName) throws Exception {
69
68
new EslintConfig (eslintRc , null ));
70
69
71
70
try (StepHarnessWithFile stepHarness = StepHarnessWithFile .forStep (this , formatterStep )) {
72
- stepHarness .test (dirtyFileFile , ResourceHarness .getTestResource (dirtyFile ), ResourceHarness .getTestResource (cleanFile ));
71
+ stepHarness .test ("test.js" , ResourceHarness .getTestResource (dirtyFile ), ResourceHarness .getTestResource (cleanFile ));
73
72
}
74
73
}
75
74
}
@@ -100,7 +99,6 @@ void formattingUsingRulesetsFile(String ruleSetName) throws Exception {
100
99
tsconfigFile = setFile (testDir + "tsconfig.json" ).toResource (filedir + "tsconfig.json" );
101
100
}
102
101
final String dirtyFile = filedir + "typescript.dirty" ;
103
- File dirtyFileFile = setFile (testDir + "test.ts" ).toResource (dirtyFile );
104
102
final String cleanFile = filedir + "typescript.clean" ;
105
103
106
104
final FormatterStep formatterStep = EslintFormatterStep .create (
@@ -113,7 +111,7 @@ void formattingUsingRulesetsFile(String ruleSetName) throws Exception {
113
111
new EslintTypescriptConfig (eslintRc , null , tsconfigFile ));
114
112
115
113
try (StepHarnessWithFile stepHarness = StepHarnessWithFile .forStep (this , formatterStep )) {
116
- stepHarness .test (dirtyFileFile , ResourceHarness .getTestResource (dirtyFile ), ResourceHarness .getTestResource (cleanFile ));
114
+ stepHarness .test (testDir + "test.ts" , ResourceHarness .getTestResource (dirtyFile ), ResourceHarness .getTestResource (cleanFile ));
117
115
}
118
116
}
119
117
}
@@ -158,7 +156,6 @@ void formattingUsingInlineXoConfig() throws Exception {
158
156
159
157
File tsconfigFile = setFile (testDir + "tsconfig.json" ).toResource (filedir + "tsconfig.json" );
160
158
final String dirtyFile = filedir + "typescript.dirty" ;
161
- File dirtyFileFile = setFile (testDir + "test.ts" ).toResource (dirtyFile );
162
159
final String cleanFile = filedir + "typescript.clean" ;
163
160
164
161
final FormatterStep formatterStep = EslintFormatterStep .create (
@@ -171,7 +168,7 @@ void formattingUsingInlineXoConfig() throws Exception {
171
168
new EslintTypescriptConfig (null , esLintConfig , tsconfigFile ));
172
169
173
170
try (StepHarnessWithFile stepHarness = StepHarnessWithFile .forStep (this , formatterStep )) {
174
- stepHarness .test (dirtyFileFile , ResourceHarness .getTestResource (dirtyFile ), ResourceHarness .getTestResource (cleanFile ));
171
+ stepHarness .test (testDir + "test.ts" , ResourceHarness .getTestResource (dirtyFile ), ResourceHarness .getTestResource (cleanFile ));
175
172
}
176
173
}
177
174
}
0 commit comments