DemocracyOS / democracyos

Democracia en Red is focusing on specific implementations of DemocracyOS. We are working now working with governments and activists all over Latin America. If you are interested in our online participation tools you can check them out on our site.
https://democraciaos.org/en/
GNU General Public License v3.0
1.77k stars 616 forks source link

[v3] Add Reaction Instance API, DB-API and Tests #1504

Closed guillecro closed 6 years ago

guillecro commented 6 years ago

This pull request also fixes a problem in main.js where having a .env file with CONFIG.MONGO_URL defined, all the npm run test where done with the dev DB

if (process.env.NODE_ENV === 'test' && !CONFIG.MONGO_URL) {
  CONFIG.MONGO_URL = 'mongodb://localhost/DemocracyOS-test'
}

Changed to

if (process.env.NODE_ENV === 'test' && !CONFIG.MONGO_URL_TEST) {
 CONFIG.MONGO_URL = 'mongodb://localhost/DemocracyOS-test'
}

Other changes: