Commit graph

5 commits

Author SHA1 Message Date
James Nylen
2682009c9f
Parse profile content into a JSON+HTML data structure (#445)
* A few minor tweaks

* Add toIdentifierCase function

* Use toIdentifierCase function to make profile content more code-friendly

* Improve "incomplete profile" indicator checks

In order to properly check the "incomplete profile" indicators, the
"Company blurb" section should exist.

* Return parsed HTML content for each company

* Test parsing of invisible "variation selector" character

* Strip out invisible "variation selector" character
2018-06-25 02:16:13 -05:00
James Nylen
5cce269df4
Refactor validation logic into a short script and a larger library file (#444)
* Refactor validation logic into a short script and a larger library file

* Add unit tests for utility functions
2018-06-25 00:00:12 -05:00
James Nylen
cbd3073fd6
Validate whether profiles marked as incomplete are actually incomplete (#443) 2018-06-24 21:42:33 -05:00
James Nylen
780627bf1e
Better handling of apostrophes in company names (#441) 2018-06-23 00:20:24 -05:00
James Nylen
8942a91a85
Add automated tests for validation script (#438)
* Update node

* Add mocha and chai

* Fix npm audit issue

https://nodesecurity.io/advisories/577

* Skip some redundant errors

* Catch duplicate headings

* Update the wording of a few errors

* Detect when headings are wrapped inside another element

* Build and validate the content of each profile section

* Add tests for validation script

* Remove empty sections in existing profiles
2018-06-22 23:50:06 -05:00