-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mi md links Iris Trejo #28
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Iris, me agrada que pudiste resolver tu proyecto y cumpliste con el requerimiento. Las observaciones que tengo son sobre la descripción del archivo README.md porque el usuario no tiene una guía practica de como opera la librería y como instalarla, mi sugerencia es completar con multimedia(capturas de pantalla ó videos) de la instalación, descripción y ejecución, por otro lado me percate que el uso de TESTING lo dejaste de lado, lo cual te recomiendo complementar testeando todas tus funciones faltantes con DATOS REALES, usar datos reales es muy útil, observe buenas practicas lo cual es importante resaltar.
node_modules/ | ||
.DS_Store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esta genial el excluir estas carpetas, añadiría la carpeta assets y package-lock.json
@@ -0,0 +1,81 @@ | |||
let fs = require('fs') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cuando las variable mutan(cambian su valor) se usa let, si no mutan se usa const
let fs = require('fs') | |
const fs = require('fs') |
let fetch = require ('node-fetch') | ||
let colors = require ("colors") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let fetch = require ('node-fetch') | |
let colors = require ("colors") | |
const fetch = require ('node-fetch') | |
const colors = require ("colors") |
|
||
|
||
// read file | ||
function readMd (uri){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function readMd (uri){ | |
function readMd (file){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
define mejor el parametro
// read file | ||
function readMd (uri){ | ||
let readString = fs.readFileSync(uri, 'utf-8') | ||
return `${readString}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return `${readString}` | |
return readString |
{ | ||
"name": "CDMX009-MdLinks", | ||
"version": "1.0.0", | ||
"description": "## Preámbulo", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tu descripción tiene que ser funcional y en ingles
"description": "## Preámbulo", | |
"description": "## Preámbulo", |
@@ -0,0 +1,11 @@ | |||
const { readMd } = require('../index'); | |||
|
|||
describe('test de funcion 1', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
describe('test de funcion 1', () => { | |
describe('function testing one', () => { |
const { readMd } = require('../index'); | ||
|
||
describe('test de funcion 1', () => { | ||
test('espero que mi funcion 1 sea una funcion', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ingles
test('espero que mi funcion 1 sea una funcion', () => { | |
test('function one response function', () => { |
expect(typeof readMd).toBe('function') | ||
}) | ||
}) | ||
it('Se espera leer un archivo de lectura',() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recomiendo ser más puntual en la descripción
it('Se espera leer un archivo de lectura',() => { | ||
let uri = './otraCosa.md' | ||
expect(typeof readMd(uri)).toBe('string') | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El testing es importante, te recomiendo hacer testing de todas tus funciones
No description provided.