Skip to content

Commit

Permalink
Try to fix the failing Prettier test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jan 3, 2023
1 parent 748fd30 commit 6cd1eb4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ void verifyPrettierErrorMessageIsRelayed() throws Exception {
npmPathResolver(),
new PrettierConfig(null, ImmutableMap.of("parser", "postcss")));
try (StepHarnessWithFile stepHarness = StepHarnessWithFile.forStep(this, formatterStep)) {
stepHarness.testResourceExceptionMsg("npm/prettier/filetypes/scss/scss.dirty").startsWith(
"com.diffplug.spotless.npm.SimpleRestClient$SimpleRestResponseException: Unexpected response status code at /prettier/format [HTTP 501] -- (Error while formatting: Error: Couldn't resolve parser \"postcss\")");
stepHarness.testResourceExceptionMsg("npm/prettier/filetypes/scss/scss.dirty").isEqualTo(
"Unexpected response status code at /prettier/format [HTTP 501] -- (Error while formatting: Error: Couldn't resolve parser \"postcss\")");
}
}
}
Expand Down

0 comments on commit 6cd1eb4

Please sign in to comment.