mozilla-b2g/mocha-socket-reporter — pull request #1 by malini (2014-08-19 20:42:23+00:00)
Title: Bug 1043385 - change output so it conforms to structured logging

if (suite.parent && suite.parent.root) is needed in onSuiteEnd because we catch onSuiteEnd for each subtest. We only want to log TEST-END when all subtests are complete, and that is only when the suite is the parent, ie when parent.root is true