blue-button/bluebutton.js — pull request #92 by sankarravi (2014-04-16 07:55:56+00:00)
Title: Test cleanup

I added:
1. Tests for C32 parsing
2. A shared module that says "given an expected output JSON file and a bb object, verify that all of the JSON looks good" that all of Node/AMD/PhantomJS x CCDA/CCD can share

Noteworthy / maybe controversial things:
1. I added the new C32 XML directly to the repo, in the fixtures folder. It's < 100KB, and I wasn't sure if bower could do anything useful with the original URL, which returns a ZIP file. Honestly, I think it would make sense to do this for the CCDA XML too, to avoid needing to setup bower and a 70MB directory just to use a single ~100KB file. But if we really want to do the bower thing for the C32 XML too, I found a git repo that contains a bunch of sample CCDs and CCRs from MU Stage 1 testing that we could use instead.

2. I added underscore.js to the tests code, because previously AMD and Phantom tests were using jQuery $.each and Node was using underscore's _.each... they have a slightly different API, making it hard to collapse the test code. So I opted to include underscore everywhere (though we can probably opt to do jQuery everywhere instead if there's a preference).