refactor(cli): flowDynamic

This commit is contained in:
Leifer Mendez
2023-02-01 16:33:57 +01:00
parent f7d90efc2f
commit 0f8a33cc0c
3 changed files with 24 additions and 23 deletions

View File

@@ -54,7 +54,7 @@ test(`[Caso - 05] Continuar Flujo (continueFlow)`, async () => {
async (ctx, { flowDynamic, fallBack }) => {
if (ctx.body !== '18') {
await delay(50)
return fallBack(false, 'Ups creo que no eres mayor de edad')
return fallBack('Ups creo que no eres mayor de edad')
}
return flowDynamic('Bien tu edad es correcta!')
}