From e0bcd56402b3e3ac43ebbce62c18b34faef0970e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 17 Jul 2015 15:19:11 +0200 Subject: [PATCH] More work on right sidebar unit tests --- apps/files/tests/js/mainfileinfodetailviewSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files/tests/js/mainfileinfodetailviewSpec.js b/apps/files/tests/js/mainfileinfodetailviewSpec.js index e4b3adc578..ed7c6401a7 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() {