Skip to content

Commit

Permalink
fixup! fixup! WIP: Add Gradle bindings for JSON formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jamietanna committed Apr 28, 2021
1 parent 68e636a commit 44866e6
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -50,9 +50,9 @@ public void formattingWithCustomNumberOfSpaces() throws IOException {
"}",
"spotless {",
" json {" +
" indentWithSpaces(6)" +
" target '**/*.json'" +
"}",
" indentWithSpaces(6)" +
"}",
"}");
setFile("src/main/resources/example.json").toResource("json/singletonArrayBefore.json");
gradleRunner().withArguments("spotlessApply").build();
Expand All @@ -69,9 +69,9 @@ public void formattingWithTabs() throws IOException {
"}",
"spotless {",
" json {" +
" indentWithTabs()" +
" target '**/*.json'" +
"}",
" indentWithTabs()" +
"}",
"}");
setFile("src/main/resources/example.json").toResource("json/singletonArrayBefore.json");
gradleRunner().withArguments("spotlessApply").build();
Expand Down

0 comments on commit 44866e6

Please sign in to comment.