title: How to repeat/loop through mocha tests
body: <p>I've been working on a few mocha/chai tests, and I still haven't found a good way of running my tests over many different possibilities aside from placing a loop within each of the 'it' tests and iterating one and a time. The problem is, if I have tens or hundreds of tests, I don't want to write the same for-loop over and over again.</p>
  
  <p>Is there a more elegant way of doing this? Particularly one that loops through all the tests at once with different test parameters?</p>
  
  <pre><code>describe('As a dealer, I determine how many cards have been dealt from the deck based on', function(){
  
    console.log(this);
  
    beforeEach(function(){
      var deck = new Deck();
      var myDeck = deck.getCards();
    });
  
  
      it('the number of cards are left in the deck', function(){
        for(var i = 1; i&lt;=52; i++){
          myDeck.dealCard();
          expect(myDeck.countDeck()).to.equal(52-i);
        }
      });
  
      it('the number of cards dealt from the deck', function(){
        expect(myDeck.countDealt()).to.equal(i);
      });
  
      it('the sum of the cards dealt and the cards left in the deck', function(){
        expect(myDeck.countDeck() + myDeck.countDealt()).to.equal(52)
      });
  
  });
  </code></pre>