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

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

Did you find this post useful? Show some love!
DISCUSSION (3)

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 Mar 28

Why doesn't CSS move faster (like JavaScript)?

JavaScript has always had warts that people put up with—but recently it has evo...

Pedro Cruz
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

DEV Tip: When you see a dev.to post you like, follow the author to get more of their posts in your feed.

Happy Coding ❤️