title: How do I re-use a helper function in Angular testing?
body: <p>In my unit test (written with protractor) I need to write functions that should be used in several tests in several files (and only in unit tests).</p>
  
  <p>How can I create those functions?</p>
  
  <p>The best solution is to declare the functions in a single file to include in the test files that I need, but I don't know how to do it without creating global variables or global functions.</p>