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 new file mode 100644 index 0000000..539c402 --- /dev/null +++ b/resultado/result.js @@ -0,0 +1,8 @@ +import verifica from "../valida/validando.js" + +function result(){ + return verifica() +} +result() + +export default 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