1
0
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-12-11 00:21:24 +01:00

ci: fix tests

This commit is contained in:
2024-11-18 01:37:42 +01:00
parent 9b925eea92
commit db15155137
11 changed files with 40 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ class Template {
}
private async replaceInDestination(
options: ReplaceInDestinationOptions
options: ReplaceInDestinationOptions,
): Promise<void> {
const { name, description, destination } = options
const readmePath = path.join(destination, "README.md")
@@ -82,7 +82,7 @@ class Template {
} = options
const templateLanguagePath = path.join(
TEMPLATE_SOLUTION_PATH,
programmingLanguageName
programmingLanguageName,
)
await this.verifySupportedProgrammingLanguage(programmingLanguageName)
await fs.promises.mkdir(destination, { recursive: true })
@@ -113,7 +113,7 @@ class Template {
}
public async verifySupportedProgrammingLanguage(
language: string
language: string,
): Promise<void> {
const languages = await this.getProgrammingLanguages()
if (!languages.includes(language)) {