package com.karateca.jstoolbox.joiner;

import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;

import java.io.File;

/**
 * @author Andres Dominguez.
 */
public class JoinerActionTest extends LightCodeInsightFixtureTestCase {

  @Override
  protected String getTestDataPath() {
    return new File("testData/joiner").getPath();
  }

  public void testJoinStringSingleQuotes() {
    myFixture.configureByFiles("multiLineStringBefore.js");

    myFixture.performEditorAction("com.karateca.jstoolbox.joiner.JoinerAction");

    myFixture.checkResultByFile("multiLineStringBefore.js", "multiLineStringAfter.js", false);
  }
}

@@ -568,16 +568,25 @@
 tByFile(
+%0A        
 %22multiLi
@@ -604,16 +604,24 @@
 ore.js%22,
+%0A       
  %22multiL
@@ -651,11 +651,360 @@
 se);%0A  %7D
+%0A%0A  public void testJoinStringDoubleQuotes() %7B%0A    myFixture.configureByFiles(%22multiLineStringDoubleQuotesBefore.js%22);%0A%0A    myFixture.performEditorAction(%22com.karateca.jstoolbox.joiner.JoinerAction%22);%0A%0A    myFixture.checkResultByFile(%0A        %22multiLineStringDoubleQuotesBefore.js%22,%0A        %22multiLineStringDoubleQuotesAfter.js%22,%0A        false);%0A  %7D
 %0A%7D%0A

add failing test