Some of these changes were trivial (fixing mocks), but others were less so (checking swatchColors and the i18n tidy function fix). Let me know if those were fixed incorrectly or if you have questions.
One of the tests required basically an initialized Race object, which would be hard to mock. I just copied the definition of Dwarf over from the production file to a test file and removed the other races to make things a bit simpler.
Some of these changes were trivial (fixing mocks), but others were less so (checking
swatchColors
and the i18n tidy function fix). Let me know if those were fixed incorrectly or if you have questions.One of the tests required basically an initialized Race object, which would be hard to mock. I just copied the definition of Dwarf over from the production file to a test file and removed the other races to make things a bit simpler.
Closes #22.