summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/mainfileinfodetailviewSpec.js6
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() {