Skip to content

Commit

Permalink
adapting test for new output format
Browse files Browse the repository at this point in the history
  • Loading branch information
simschla committed Jun 12, 2020
1 parent dd6f120 commit bc9410b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

import java.io.IOException;

import com.diffplug.spotless.maven.generic.Prettier;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.diffplug.spotless.category.NpmTest;
import com.diffplug.spotless.maven.MavenIntegrationHarness;
import com.diffplug.spotless.maven.MavenRunner;
import com.diffplug.spotless.maven.generic.Prettier;

@Category(NpmTest.class)
public class PrettierFormatStepTest extends MavenIntegrationHarness {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void recreate500InternalServerError() throws Exception {
new PrettierConfig(null, ImmutableMap.of("parser", "postcss")));
try (StepHarness stepHarness = StepHarness.forStep(formatterStep)) {
stepHarness.testException("npm/prettier/filetypes/scss/causes500error.dirty", exception -> {
exception.hasMessageStartingWith("500: Internal Server Error");
exception.hasMessageContaining("HTTP 501");
});
}
}
Expand Down

0 comments on commit bc9410b

Please sign in to comment.