diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-07-17 15:19:11 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-08-07 01:22:43 +0200 |
commit | e0bcd56402b3e3ac43ebbce62c18b34faef0970e (patch) | |
tree | 0600f1030fc5d77e73faf4b4b9b79b83ba124a75 /apps/files/tests | |
parent | 3e44ca6dc24d5ffc4cb678532a5afa3b026780ce (diff) | |
download | nextcloud-server-e0bcd56402b3e3ac43ebbce62c18b34faef0970e.tar.gz nextcloud-server-e0bcd56402b3e3ac43ebbce62c18b34faef0970e.zip |
More work on right sidebar unit tests
Diffstat (limited to 'apps/files/tests')
-rw-r--r-- | apps/files/tests/js/mainfileinfodetailviewSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/tests/js/mainfileinfodetailviewSpec.js b/apps/files/tests/js/mainfileinfodetailviewSpec.js index e4b3adc578e..ed7c6401a77 100644 --- a/apps/files/tests/js/mainfileinfodetailviewSpec.js +++ b/apps/files/tests/js/mainfileinfodetailviewSpec.js @@ -56,15 +56,15 @@ describe('OCA.Files.MainFileInfoDetailView tests', function() { }); it('displays favorite icon', function() { view.setFileInfo(_.extend(testFileInfo, { - tags: [OC.FAVORITE] + tags: [OC.TAG_FAVORITE] })); - expect(OC.TestUtil.getImageUrl(view.$el.find('.favorite img'))) + expect(view.$el.find('.favorite img').attr('src')) .toEqual(OC.imagePath('core', 'actions/starred')); view.setFileInfo(_.extend(testFileInfo, { tags: [] })); - expect(OC.TestUtil.getImageUrl(view.$el.find('.favorite img'))) + expect(view.$el.find('.favorite img').attr('src')) .toEqual(OC.imagePath('core', 'actions/star')); }); it('displays mime icon', function() { |