Skip to content

Commit a36b44b

Browse files
committed
Update tests for the new format.
1 parent cbb03fa commit a36b44b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/BiomeIntegrationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ void failureWhenNotParseable() throws Exception {
387387
"}");
388388
setFile("biome_test.js").toResource("biome/js/fileBefore.js");
389389

390-
var spotlessApply = gradleRunner().withArguments("--stacktrace", "spotlessApply").buildAndFail();
391-
assertThat(spotlessApply.getOutput()).contains("spotlessMybiome FAILED");
390+
var spotlessApply = gradleRunner().withArguments("spotlessApply").buildAndFail();
391+
assertThat(spotlessApply.getOutput()).contains("spotlessMybiomeApply FAILED");
392392
assertFile("biome_test.js").sameAsResource("biome/js/fileBefore.js");
393393
assertThat(spotlessApply.getOutput()).contains("Format with errors is disabled.");
394-
assertThat(spotlessApply.getOutput()).contains("Step 'biome' found problem in 'biome_test.js'");
394+
assertThat(spotlessApply.getOutput()).contains("biome_test.js:LINE_UNDEFINED biome(java.lang.RuntimeException)");
395395
}
396396

397397
/**

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/ErrorShouldRethrowTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void unlessEnforceCheckIsFalse() throws Exception {
8686
@Test
8787
void unlessExemptedByStep() throws Exception {
8888
writeBuild(
89-
" ignoreErrorForStep 'no swearing'",
89+
" ignoreErrorForStep 'noSwearingStep'",
9090
" } // format",
9191
"} // spotless");
9292
setFile("README.md").toContent("This code is fubar.");

0 commit comments

Comments
 (0)