title: Unit testing javascript code style
body: <p>I'm getting started with javascript unit testing (with Jasmine).</p>
  
  <p>I have experience in unit testing C# code. But given that javascript is a dynamic language, I find it very useful to exploit that, and writing tests using the expressive power of javascript, for instance:</p>
  
  <pre><code>describe('known plugins should be exported', function(){
      var plugins = ['bundle','less','sass','coffee','jsn','minifyCSS','minifyJS','forward','fingerprint'];
  
      plugins.forEach(function(plugin){
          it('should export plugin named ' + plugin, function(){
              expect(all[plugin]).toBeDefined();
          });
      });
  });
  </code></pre>
  
  <p>As far as doing this kind of non-conventional test-writing, I haven't gone further than doing this kind of tests (array with a list of test cases that are very similar)</p>
  
  <p>So I guess my question is </p>
  
  <p>Is it fine to write tests like this, or should I constrain myself to a more "statically typed" test fixture?</p>