function execMochaWith(validate) {
  return function execMocha(glob, assertOn, done) {
    exec(
      node +
        ' "' +
        path.join('..', '..', '..', '..', 'bin', 'mocha') +
        '" -R json-stream --no-config ' +
        glob,
      {cwd: path.join(__dirname, 'fixtures', 'glob')},
      function (error, stdout, stderr) {
        try {
          validate(error, stderr);
          assertOn({stdout, stderr});
          done();
        } catch (assertion) {
          done(assertion);
        }
      }
    );
  };
}
/*-none.js"'
            );
          },
          done
        );
      });

      it('should handle both matching and non-matching patterns in the same command', function (done) {
        testGlob.shouldSucceed(
          '"./*