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

fix(cli): changes to input/output should run all affected tests

This commit is contained in:
Divlo
2021-11-10 18:57:10 +01:00
parent 17efe8a113
commit d18ca22470
5 changed files with 47 additions and 6 deletions

View File

@@ -29,8 +29,6 @@ export interface TestOptions {
elapsedTimeMilliseconds: number
}
export const successMessage = `${chalk.bold.green('Success:')} Tests passed! 🎉`
export class Test implements TestOptions {
public index: number
public path: string
@@ -39,6 +37,7 @@ export class Test implements TestOptions {
public output: string
public stdout: string
public elapsedTimeMilliseconds: number
static successMessage = `${chalk.bold.green('Success:')} Tests passed! 🎉`
constructor (options: TestOptions) {
this.index = options.index
@@ -139,7 +138,7 @@ export class Test implements TestOptions {
await solution.test()
console.log('\n------------------------------\n')
}
console.log(successMessage)
console.log(Test.successMessage)
return 0
}