Skip to content

Commit 6cd1eb4

Browse files
committed
Try to fix the failing Prettier test.
1 parent 748fd30 commit 6cd1eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testlib/src/test/java/com/diffplug/spotless/npm/PrettierFormatterStepTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ void verifyPrettierErrorMessageIsRelayed() throws Exception {
111111
npmPathResolver(),
112112
new PrettierConfig(null, ImmutableMap.of("parser", "postcss")));
113113
try (StepHarnessWithFile stepHarness = StepHarnessWithFile.forStep(this, formatterStep)) {
114-
stepHarness.testResourceExceptionMsg("npm/prettier/filetypes/scss/scss.dirty").startsWith(
115-
"com.diffplug.spotless.npm.SimpleRestClient$SimpleRestResponseException: Unexpected response status code at /prettier/format [HTTP 501] -- (Error while formatting: Error: Couldn't resolve parser \"postcss\")");
114+
stepHarness.testResourceExceptionMsg("npm/prettier/filetypes/scss/scss.dirty").isEqualTo(
115+
"Unexpected response status code at /prettier/format [HTTP 501] -- (Error while formatting: Error: Couldn't resolve parser \"postcss\")");
116116
}
117117
}
118118
}

0 commit comments

Comments
 (0)