GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Asynchronous test in mocha · Issue #295 · feup-infolab/dendro Open Labels DescriptionAll assertions inside the HTTP call callbacks need to be wrapped in try-catch blocks that call done(error), because at this time if there is a
inside a callback for a REST api call, the whole test suite will die. If we catch the error and call done(error), only the failed test case will be failed and others will continue. Example: OKcreateProjectsUnit.setup(function (err, res) { try{ should.equal(err, null); } catch(e) { done(err); } }); NOT OKcreateProjectsUnit.setup(function (err, res) { should.equal(err, null); // this will throw an uncaught Error, effectively crashing the test suite before calling done(). done(); }); Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |