How you can start create your js code if you had testing side?

twitter logo github logo ・1 min read

Hello people,

This questions it's a little bit pain in the ass for me, but i need to understand and start to understand this.

Imagine, I had HTML, CSS and some [nameOfTheFile].model.js , this file you had some tests here.

Pretty cool here.

I see the tests and i can understand some things. But it's hard for me creating my own JS according to the tests and make them checked and right.

So, how you start to see this type of projects?

If you're confuse, please, send me a email or something and i can explain you better on hangout or something :)

www.pedropcruz.pt (at the bottom of my website, you had the email)

Many thanks,

Pedro Cruz

twitter logo DISCUSS (3)
markdown guide
 

You just implement until the tests pass...

What framework are you using?

 

yeah, but the code you see on tests are different what you have to implement right?

The tests are made as a logical thin for the developer, not to train other developers (in this case, a friend send to me the HTML CSS with the tests, and now i need to do the rest of the implementation: the JS part, and see if this pass's

I was clear enough? :)

No frameworks :s

Many thanks :D

 

Alright, then you need to learn how to create this functionality you speak of with vanilla JS. Of course tests are different than the actual implementation.

Classic DEV Post from Jan 18

Sh*tpost: can we stop saying "syntactic sugar"?

What does it actually mean? you're not helping!

Pedro Cruz profile image
Yeap. Front-end Developer, UI/UX Designer, love wife, love dog, love coding, love to create something new, love to travel, love friends... Love for everyone! :D

Need a change?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️