diff options
author | Michael Jobst <mjobst+github@tecratech.de> | 2016-11-02 17:17:16 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-11-14 17:22:27 +0300 |
commit | 96debafd08fb56a0e7930596ce54f401feb442b3 (patch) | |
tree | 72564063ee0f3f3dca6cf07cb2dce4c15115df9e /apps/files_versions/tests/js/versionstabviewSpec.js | |
parent | cebb68992509215163f6776b76e48411a31a287e (diff) |
Display changes in file versions tab view and detailsView (#26511)
* Display changes in file versions tab view and detailsView
* versions tab enhancements
enhanced js test file
removed css superscript attribute for version size
* Replaced spaces with tabs
Diffstat (limited to 'apps/files_versions/tests/js/versionstabviewSpec.js')
-rw-r--r-- | apps/files_versions/tests/js/versionstabviewSpec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/tests/js/versionstabviewSpec.js b/apps/files_versions/tests/js/versionstabviewSpec.js index 94285c93aba..9b788db1970 100644 --- a/apps/files_versions/tests/js/versionstabviewSpec.js +++ b/apps/files_versions/tests/js/versionstabviewSpec.js @@ -78,12 +78,14 @@ describe('OCA.Versions.VersionsTabView', function() { var $item = $versions.eq(0); expect($item.find('.downloadVersion').attr('href')).toEqual(version1.getDownloadUrl()); expect($item.find('.versiondate').text()).toEqual('seconds ago'); + expect($item.find('.size').text()).toEqual('< 1 KB'); expect($item.find('.revertVersion').length).toEqual(1); expect($item.find('.preview').attr('src')).toEqual(version1.getPreviewUrl()); $item = $versions.eq(1); expect($item.find('.downloadVersion').attr('href')).toEqual(version2.getDownloadUrl()); expect($item.find('.versiondate').text()).toEqual('2 days ago'); + expect($item.find('.size').text()).toEqual('< 1 KB'); expect($item.find('.revertVersion').length).toEqual(1); expect($item.find('.preview').attr('src')).toEqual(version2.getPreviewUrl()); }); @@ -231,4 +233,3 @@ describe('OCA.Versions.VersionsTabView', function() { }); }); }); - |