Alexander Yamkov
Alexander Yamkov
I made a mock of ModalService for test: ``` javascript describe('some test', function () { var $httpBackend, scope, modalServiceMock, modalInstance, someController; beforeEach(function () { inject(function (_$httpBackend_, $rootScope, $controller) { $httpBackend...
I didn't found any built-in option for this and handled it with additional code: ``` if (output.type === 'addedToQueue' && typeof output.file !== 'undefined') { if(output.file.size > this.sizeLimit) { this.showError('size',...
My suggestion is: It should be possible to catch result in: `if (output.type === 'rejected') {}` and then should be property available `output.reason` to check reject reason like `'fileSize' |...