describe('Controller: ModalSettingsCtrl', function () {
- var $injector = angular.injector(['liberValidApp', 'ng', 'ngMock', 'Auth']);
// load the controller's module
beforeEach(module('liberValidApp'));
var ModalSettingsCtrl, scope;
- var modalInstance = $injector.get('$modalInstance');
-
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope, $injector) {
scope = $rootScope.$new();
ModalSettingsCtrl = $controller('ModalSettingsCtrl', {
- $scope: scope,
- $modalInstance: modalInstance,
- Auth: $injector.get('Auth')
+ $scope: scope
});
}));
});
it('should send worker and update report when generation is done', function (done) {
+ this.timeout(15000);
request(app)
.post('/api/reports?access_token=' + localMock.user.token())
.attach('content', appDir + '/api/report/fixtures/minimal.pdf')
report.isGenerated.should.be.true();
done();
});
- }, 1500);
+ }, 4000);
});
});