Skip to content

JossCorrea/api-node-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

api-node-tdd

We have 4 functions very useful for models. getNewId : searching in the array the last id and increment of 1 to return a new id. newDate : return the date of your server in ISO 8601. mustBeInArray: return a promise. Using when we need to check if a row exist via the id (Read One, Update and Delete). writeJSONFile : write new array in the JSON File data.

obterNovoId,
novaData,
estaNoArray,
escreverNoJSON

api

src

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published