@Test
public void formattingIsCorrectIfNoParameters() {

    NormalInvocation normalInvocation = new NormalInvocation(FUNCTION_NAME);
    String expected = "\n" + FUNCTION_NAME + "();\n";
    String actual = normalInvocation.getJavascriptCode();
    assertEquals(expected, actual);
}