k88hudson / react-formation

Robust, testable forms with react in minutes
https://k88hudson.github.io/react-formation
33 stars 9 forks source link

use object structure to allow multiple valid and invalid options for tests #23

Closed pippinlee closed 9 years ago

pippinlee commented 9 years ago

Refactor Validator.test.js to allow us to test an array of valid and invalid options. Switch to object structure, now uses:

validatorTerm, valid, invalid, invalidMessage

k88hudson commented 9 years ago

Just a small nit, and if you could fix the commit message that would be awesome ^_^ thanks! After that it's good to go.

I'm not sure how it could possibly have decreased coverage...

k88hudson commented 9 years ago

Aha! Found the problem -- you're missing the hexColor tests

k88hudson commented 9 years ago

:dancer: