title: AngularJS and Karma - include or require files
body: <p>I've been coding using AngularJS with Karma/Jasmine for unit tests for a while (a couple of months, which I think makes me almost an old hand).  I've always kind of wanted a way to make reuseable functions in my Karma testing, but had resigned myself to there being no good way to do it.</p>
  
  <p>I've recently also started using protractor, which provides end to end testing.  In protractor there is a require syntax to include one file into another, allowing us to create library functions.  This is incredibly convenient, and I'd like something similar in Karma/Jasmine.  </p>
  
  <p>I haven't found quite where in protractor this capability exists, but it clearly doesn't exist in Karma.  Has anyone found or implemented a similar capability?</p>