GroceriStar / groceristar-fetch

json arrays for Food Tech projects
https://groceristar.github.io/groceristar-fetch/
GNU General Public License v3.0
8 stars 18 forks source link

Move detailed tests from groceristar project to other projects too #102

Open atherdon opened 5 years ago

atherdon commented 5 years ago

We should have tests, split for sections, related to each separated file. We should have few describes We should have count, checking props, check objects structure inside, maybe count of arrays, inside the props too.

1) count 2) props 3) objects structure 4) count of arrays inside the props of file too.

Repeate all this stuff for each of project

This is a code that i use for groceristar in order to know how much data we have inside this files:

// module.count = function() {
//
//  console.log('ingredient ' +  _.size() )
//  console.log('department ' +  _.size() )
//  console.log('grocery ' +  _.size() )
//  console.log('users ' +  _.size() )
//  console.log('ingredient ' +  _.size() )
//
//
// };

Index Test - should work for anyone file. right now its only for ChickenKyiv

atherdon commented 5 years ago

we should have a similar to gs file tests for this methods/files

1) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/ChickenKyiv/chickenKyiv.test.js 2) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/MealCalendar/mealCalendar.test.js 3) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/Search/search.test.js 4) https://github.com/GroceriStar/groceristar-fetch/blob/master/index.test.js

atherdon commented 5 years ago

https://github.com/GroceriStar/groceristar-fetch/issues/13

atherdon commented 5 years ago

What tests, should be moved:

So, I want to have 3 separated Pull Requests, related to working tests for each of "projects". If you want - you can split tests for each file that we connect at project - as a separated commit. but this is not necessary for me. But you can do it, in order to organize your work.

1) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/GroceriStar/groceristar.test.js#L29-L36 2) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/GroceriStar/groceristar.test.js#L38-L42 3) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/GroceriStar/groceristar.test.js#L60-L70 4) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/GroceriStar/groceristar.test.js#L72-L81 5) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/GroceriStar/groceristar.test.js#L83-L89 6) https://github.com/GroceriStar/groceristar-fetch/blob/master/projects/GroceriStar/groceristar.test.js#L142-L174