title: Unit testing angular/Ionic project
body: <p>I have a very simple controller that looks like this.</p>
  
  <pre><code>timeInOut.controller('timeInOutController', function($scope, $filter, $ionicScrollDelegate){
  
      ... 
  
  });
  </code></pre>
  
  <p>Whenever I try to create a unit test for it like so...</p>
  
  <pre><code>(function() {
  'use strict';
  
      var scope, controller, filter;
  
      describe('timeInOutController', function () {
  
          beforeEach(module('common.directives.kmDateToday'));
  
          beforeEach(inject(function ($rootScope, $controller, $filter) {
              scope = $rootScope.$new();
              filter = $filter;
              controller = $controller('timeInOutController', {
                  $scope: scope
              });
          }));
  
          describe('#date setting', function(){
  
              ...
  
          });
      });
  })();
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>[$injector:unpr] Unknown provider: $ionicScrollDelegateProvider &lt;- $ionicScrollDelegate</p>
  </blockquote>
  
  <p>Obviously in my example here I'm not trying to inject the <code>$ionicScrollDelegate</code> into the test, that's just because I've tried it any number of ways with no success and don't know which failed attempt to include.</p>
  
  <p>Also in my <code>karma.conf.js</code> file I am including the <code>ionic.bundle.js</code> and <code>angular-mocks.js</code> libraries/files.</p>
  
  <p>I can successfully unit test anything that doesn't use anything $ionic in it, so I know my testing framework is set up correctly, the issue is injecting anything ionic related.</p>