|
|
@@ -666,13 +666,13 @@ describe('OCA.Files.FileActions tests', function() { |
|
|
|
|
|
|
|
it('replaces download icon with spinner', function() { |
|
|
|
FileActions.updateFileActionSpinner($el, true); |
|
|
|
expect($el.find('.icon.loading').length).toEqual(1); |
|
|
|
expect($el.find('.icon.icon-loading-small').length).toEqual(1); |
|
|
|
expect($el.find('.icon.icon-download').hasClass('hidden')).toEqual(true); |
|
|
|
}); |
|
|
|
it('replaces spinner back with download icon with spinner', function() { |
|
|
|
FileActions.updateFileActionSpinner($el, true); |
|
|
|
FileActions.updateFileActionSpinner($el, false); |
|
|
|
expect($el.find('.icon.loading').length).toEqual(0); |
|
|
|
expect($el.find('.icon.icon-loading-small').length).toEqual(0); |
|
|
|
expect($el.find('.icon.icon-download').hasClass('hidden')).toEqual(false); |
|
|
|
}); |
|
|
|
}); |