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 :) (at the bottom of my website, you had the email)

Many thanks,

Pedro Cruz

Did you find this post useful? Show some love!

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 May 4

[Off Topic] Should a developer marry another developer? What are the chances?


Follow @ssnigdho to see more of their posts in your feed.
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
More from @pedropcruz
Ideas for front-end project crazy think :D
#ideas #help #challenge #opensource
Trending on
Coding Concepts! Cyclomatic Complexity
#webdev #designpatterns #learning #javascript
Mint vs JavaScript (stack)
#mintlang #javascript #webdev
Semicolon Rules in JavaScript are weird...
Personal Site or Blog Recommendation
#discuss #help #blog
Qlik ❤ D3
#d3 #javascript #qlik #data
Looking for Tech Lead resources (books, sites, etc.)
#help #leadership #technical #softskills
Learning and Mastering Vue.js
#vue #javascript #discuss
What and How to Test with Jest and Enzyme. Full Instruction on React Components Testing
#frontend #react #javascript #jest