NaturalNode/natural — pull request #205 by johnmarkos (2014-12-25 19:16:34+00:00)
Title: Add coverage for BayesClassifier.

Adds coverage for error condition in BayesClassifier.load.

Also fixes bug in error condition in which the function was not returning after calling the callback with an error. This caused the function attempt to go on to the non-error case, which caused an error.

Also fixes my own mis-naming of a test case in spec/classifier_spec.js. The nonexistent filename case was not running because it had the same name as the "called without callback" case.