From 7a50ed4bebb91c25e52408dd4598803f90c5d76c Mon Sep 17 00:00:00 2001 From: Jessica Rodrigues Date: Thu, 19 Jan 2023 15:39:43 -0300 Subject: [PATCH 1/2] Armazena_Resultado --- resultado/result.js | 6 ++++++ valida/validando.js | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 resultado/result.js diff --git a/resultado/result.js b/resultado/result.js new file mode 100644 index 0000000..89c868b --- /dev/null +++ b/resultado/result.js @@ -0,0 +1,6 @@ +import verifica from "../valida/validando.js" + +function result(){ + console.log(verifica()) +} +result() diff --git a/valida/validando.js b/valida/validando.js index f6a9ffa..9f5b2fa 100644 --- a/valida/validando.js +++ b/valida/validando.js @@ -1,10 +1,8 @@ import validationResult from "../js/validation.js"; function verifica() { - console.log(validationResult) + return validationResult() } verifica() - - export default verifica \ No newline at end of file From ed7cee2704ff1f3d780ffa92b3050933e40469b6 Mon Sep 17 00:00:00 2001 From: Jessica Rodrigues Date: Thu, 26 Jan 2023 14:31:12 -0300 Subject: [PATCH 2/2] Variavel para armazenar o export --- export/export.js | 7 +++++++ resultado/result.js | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 export/export.js diff --git a/export/export.js b/export/export.js new file mode 100644 index 0000000..2d794a8 --- /dev/null +++ b/export/export.js @@ -0,0 +1,7 @@ +import result from "../resultado/result.js" + +function teste(){ + const schema = JSON.stringify(result()) + console.log(schema) +} +teste() diff --git a/resultado/result.js b/resultado/result.js index 89c868b..539c402 100644 --- a/resultado/result.js +++ b/resultado/result.js @@ -1,6 +1,8 @@ import verifica from "../valida/validando.js" function result(){ - console.log(verifica()) + return verifica() } result() + +export default result