zhenlab-ltri / NemaNode

Interactive map of neural connections in the nematode C. elegans. Online at http://nemanode.org.
http://nemanode.org
GNU General Public License v3.0
8 stars 4 forks source link

Reduce test dependency on hard coded data values #65

Closed d2fong closed 4 years ago

d2fong commented 4 years ago

This pull request:

  1. Formats the test code to conform better to the specified eslint rules
  2. Reduces test dependency on hard coded data values

Most tests in the current dev branch rely on values like 'SEM_adult' for individual dataset values, or 'complete', 'head' for dataset types. This pull request removes these references and instead relies on test utility functions to get random datasets/dataset types without explicitly typing the value.

All files with changes that contain more than just formatting will be commented for easier review.

refs #20

d2fong commented 4 years ago

Ok great.