Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

Mi md links Iris Trejo#28

Open
IrisFyD wants to merge 7 commits into
Laboratoria:masterfrom
IrisFyD:master
Open

Mi md links Iris Trejo#28
IrisFyD wants to merge 7 commits into
Laboratoria:masterfrom
IrisFyD:master

Conversation

@IrisFyD

@IrisFyD IrisFyD commented Jun 5, 2020

Copy link
Copy Markdown

No description provided.

@reloadercf reloadercf left a comment

Copy link
Copy Markdown

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.

Comment thread .gitignore
Comment on lines +1 to +2
node_modules/
.DS_Store No newline at end of file

Copy link
Copy Markdown

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

Comment thread index.js
@@ -0,0 +1,81 @@
let fs = require('fs')

Copy link
Copy Markdown

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

Suggested change
let fs = require('fs')
const fs = require('fs')

Comment thread index.js
Comment on lines +4 to +5
let fetch = require ('node-fetch')
let colors = require ("colors")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let fetch = require ('node-fetch')
let colors = require ("colors")
const fetch = require ('node-fetch')
const colors = require ("colors")

Comment thread index.js


// read file
function readMd (uri){

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function readMd (uri){
function readMd (file){

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define mejor el parametro

Comment thread index.js
// read file
function readMd (uri){
let readString = fs.readFileSync(uri, 'utf-8')
return `${readString}`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return `${readString}`
return readString

Comment thread package.json
{
"name": "CDMX009-MdLinks",
"version": "1.0.0",
"description": "## Preámbulo",

Copy link
Copy Markdown

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

Suggested change
"description": "## Preámbulo",
"description": "## Preámbulo",

Comment thread test/index.test.js
@@ -0,0 +1,11 @@
const { readMd } = require('../index');

describe('test de funcion 1', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
describe('test de funcion 1', () => {
describe('function testing one', () => {

Comment thread test/index.test.js
const { readMd } = require('../index');

describe('test de funcion 1', () => {
test('espero que mi funcion 1 sea una funcion', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ingles

Suggested change
test('espero que mi funcion 1 sea una funcion', () => {
test('function one response function', () => {

Comment thread test/index.test.js
expect(typeof readMd).toBe('function')
})
})
it('Se espera leer un archivo de lectura',() => {

Copy link
Copy Markdown

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

Comment thread test/index.test.js
it('Se espera leer un archivo de lectura',() => {
let uri = './otraCosa.md'
expect(typeof readMd(uri)).toBe('string')
}) No newline at end of file

Copy link
Copy Markdown

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants