Skip to content

Commit

Permalink
Add updated comment to test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Oct 6, 2019
1 parent c70f878 commit 9c5c264
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -15,13 +15,12 @@
*/
package com.diffplug.spotless.kotlin;

import org.junit.Test;

import com.diffplug.spotless.FormatterStep;
import com.diffplug.spotless.ResourceHarness;
import com.diffplug.spotless.SerializableEqualityTester;
import com.diffplug.spotless.StepHarness;
import com.diffplug.spotless.TestProvisioner;
import org.junit.Test;

public class KtLintStepTest extends ResourceHarness {
@Test
Expand Down Expand Up @@ -52,8 +51,11 @@ public void worksShyiko() throws Exception {
});
}

// Regression test to ensure it works on the version it switched to Pinterest (version 0.32.0)
// but before 0.34.
// https://github.com/diffplug/spotless/issues/419
@Test
public void worksPinterest() throws Exception {
public void worksPinterestAndPre034() throws Exception {
// Must use jcenter because `com.andreapivetta.kolor:kolor:0.0.2` isn't available on mavenCentral.
// It is a dependency of ktlint.
FormatterStep step = KtLintStep.create("0.32.0", TestProvisioner.jcenter());
Expand Down

0 comments on commit 9c5c264

Please sign in to comment.