Mocha test case - are nested it( ) functions kosher?
问题 I have this case where I think I want to have nested it() test cases in a Mocha test. I am sure this is wrong, and I don't see any recommendations to do what I am doing, but I don't really know of a better way at the moment - basically, I have a "parent" test, and inside the parent test there's a forEach loop with all the "child" tests: it('[test] enrichment', function (done) { var self = this; async.each(self.tests, function (json, cb) { //it('[test] ' + path.basename(json), function (done)