Unknown provider: $angularFileUploadProvider <- $angularFileUpload in jasmine angular test

I have a directive on my angular module that I'm trying to write a test for. First off, I'm not clear how to even test this directive properly, but at this point, I'm getting the following error when karma runs the test.

Unknown provider: $angularFileUploadProvider <- $angularFileUpload

Here's my test.

describe('Testing onlyDigits directive', function(){

    var elm, scope;

    beforeEach(module('jobBoard'))

    beforeEach(inject(function($route, $filter, $angularFileUpload, $animate, $rootScope, $compile) {
        elm = angular.element('<input id="testinput" type="number" onlyDigits />');
        scope = $rootScope;
        $compile(elm)(scope);
        scope.$digest();
    }));

    it('should limit input to numbers and decimal', function(){

    })
})

And here's my module with the directive...

angular.module('jobBoard', ['ngRoute', 'jobFilters', 'angularFileUpload','ngAnimate'])
    .config(['$routeProvider', '$locationProvider','$sceDelegateProvider', 'templates', function($routeProvider, $locationProvider, $sceDelegateProvider, templates){
        //routes ommitted for brevity
    }
]).directive('onlyDigits', function () {
    return {
        restrict: 'A',
        require: '?ngModel',
        link: function (scope, element, attrs, ngModel) {
            if (!ngModel) return;
            ngModel.$parsers.unshift(function (inputValue) {
                var digits = inputValue.split('').filter(function (s) { return (!isNaN(s) && s != ' ' || s == '.'); }).join('');
                ngModel.$viewValue = digits;
                ngModel.$render();
                return digits;
            });
        }
    };
});

and here's my karma config file

module.exports = function(config){
  config.set({

    basePath : './',

    files : [
      'vendor/assets/javascripts/angular/angular.js',
      'vendor/assets/javascripts/angular-route/angular-route.js',
      'vendor/assets/javascripts/angular-animate/angular-animate.js',
      'vendor/assets/javascripts/ng-file-upload-shim/angular-file-upload.js',
      'vendor/assets/javascripts/ng-file-upload/angular-file-upload.js',
      'vendor/assets/javascripts/angular-mocks/angular-mocks.js',
      'app/assets/javascripts/components/**/*.js',
      'app/assets/javascripts/view*/**/*.js',
      'spec/javascripts/**/*_spec.js'
    ],

    autoWatch : true,

    frameworks: ['jasmine'],

    browsers : ['Chrome'],

    plugins : [
            'karma-chrome-launcher',
            'karma-firefox-launcher',
            'karma-jasmine',
            'karma-junit-reporter'
            ],

    junitReporter : {
      outputFile: 'test_out/unit.xml',
      suite: 'unit'
    }

  });
};

You are injecting alot of services in your jasmine beforeEach setup:

beforeEach(inject(function($route, $filter, $angularFileUpload, $animate, $rootScope, $compile) {
    // ...
}

You should only inject the services, that you are actually using in the beforeEach function: $rootScope and $compile:

beforeEach(inject(function($compile, $rootScope) {
    // ...
});

In particular the $angularFileUpload service, that you are trying to inject is not defined in any of the modules loaded: 'jobBoard' and ['ngRoute', 'jobFilters', 'angularFileUpload','ngAnimate']