TaskGenerateIndexTs extends AbstractTaskClientGenerator { static String ensureValidRelativePath(String relativePath) { if (!relativePath.startsWith(".")) { relativePath = "./" + relativePath; } return relativePath; } TaskGenerateIndexTs(File frontendDirectory, File generatedImports,
            File outputDirectory);   }
@Test public void should_ensureValidRelativePath_whenItHasNoRelativePrefix() { String customPath = TaskGenerateIndexTs.ensureValidRelativePath( "../custom-frontend/generated-flow-imports.js"); Assert.assertEquals( "Should not append './' if it is already a relative path", "../custom-frontend/generated-flow-imports.js", customPath); customPath = TaskGenerateIndexTs.ensureValidRelativePath( "custom-frontend/generated-flow-imports.js"); Assert.assertEquals( "Should append './' if it doesn't start with a relative path", "./custom-frontend/generated-flow-imports.js", customPath); }